Exposure value setting device for a camera

ABSTRACT

A camera system including interchangeable lenses each having a switch to control many functions provided to the camera system. By simply operating one lens switch, the working mode of auto-focusing (AF) functions of the camera system can be changed: single-spot AF/multi-spot AF modes, one-shot AF/continuous AF modes, and focus-locing/non-locking modes. When used with an IC card also attached to the camera body, the lens switch can further control the functions of the camera system added or selected by the IC card.

This application is a continuation of application Ser. No. 07/595,482,filed Oct. 10, 1990, (now abandoned) which is a divisional ofapplication Ser. No. 07/417,806, filed Oct. 4, 1989 (now U.S. Pat. No.4,974,001), which is a divisional of application Ser. No. 07/350,518,filed May 10, 1989 (now U.S. Pat. No. 5,019,851).

BACKGROUND

1. Field of the Invention

The present invention relates to a camera system, and particularly toone in which a functional switch is provided in the interchangeablelens. This lens switch can adequately set and control desired functionor mode among many that are provided for the camera system.

2. Prior Art

Some camera systems are already disclosed in which one or more switchesare provided in a lens to operate a function of the camera. In JapaneseLaid-open Utility Model Publication No. 62310/1983, for example, thelens has a button switch to lock focusing. In another Japanese Laid-openUtility Model Publication No. 118423/1983, the lens has a push-switchthat is operated in two strokes: the first shallow stroke locks thefocusing and the second deep stroke releases the shutter. Further inJapanese Laid-open Patent Publication No. 140724/1983, the lens has twobuttons: one is to lock the focusing, and the other is to change theAuto-Focusing (AF) mode between the One-shot AF and Continuous AF.

Each of these prior art lens switches, however, operates only onefunction of the camera. Since camera systems are growing more versatile,the lens should have many switches to control many camera functions. Butit is not realistic to provide many switches in the lens because it isdifficult for the photographer to correctly manipulate many lensswitches during looking into the viewfinder.

Another problem about the lens switch is the conflict between the lensswitch and the body switch over a camera function. For example in thecase of the third prior art reference No. 140724/1983, the camera bodyalso has a switch for changing the AF mode. Thus the problem is how tooperate the AF function when the camera-body switch is ON but the lensswitch is OFF, or vice versa.

SUMMARY OF THE INVENTION

Regarding the above problems about the lens switch of a camera system,the present invention is made for the following objects.

One of the objects is to provide a camera system includinginterchangeable lenses where an operable member in a lens can change theworking modes of the auto-focusing function of the camera systembetween: a first mode in which the focusing of the lens is performedbased on the subject in a narrower area of the picture frame, and asecond mode in which the focusing is performed based on the subject in abroader area of the picture frame.

Another object of the present invention is to provide a camera system inwhich one lens switch can control plural functions of the camera system.

Further object of the present invention is to provide a camera systemwhere, in case plural accessories such as a lens and an IC card etc. areattached to the camera body, functions assigned to one accessory can bechanged by operating on the other accessory.

These and other objects are achieved by a camera system according to onefeature of the present invention including a camera body and aninterchangeable lens attachable to the camera body, comprising:

an operable member provided in the interchangeable lens;

means, provided in the interchangeable lens, for sending a signalindicating whether or not the operable member is operated;

means, provided in the camera body, for receiving the signal from thesignal-sending means of the interchangeable lens attached to the camerabody;

means, provided in the camera body, for selecting in response to thereceived signal one from a first frame-segment and a secondframe-segment which has an area larger than the area of the firstframe-segment;

means, provided in the camera body, for detecting focus condition of theattached interchangeable lens with respect to the frame-segment selectedby the selecting means; and

means, provided in the camera body, for focusing the attachedinterchangeable lens on the basis of detected result of the detectingmeans.

Another feature of the invention provides a camera system including acamera body and an interchangeable lens attachable to the camera body,comprising:

an operable member provided in the interchangeable lens;

means, provided in the interchangeable lens, for sending a signalindicating whether or not the operable member is operated;

means, provided in the camera body, for receiving the signal from thesignal-sending means of the interchangeable lens attached to the camerabody;

means, provided in the camera body, for repeatedly detecting focuscondition of the attached interchangeable lens;

means, provided in the camera body, for driving the interchangeable lensto a focused condition on the basis of the focus condition detected bythe detecting means; and

means, provided in the camera body, for controlling the driving means inone of a first and a second modes in response to the signal received bythe receiving means, where in the first mode the operation of thedriving means is inhibited after the detecting means once detects thefocused condition of the interchangeable lens, and in the second modethe operation of the driving means is continued even after the detectingmeans detects the focused condition of the interchangeable lens.

These camera systems enable the photographer to change the auto-focusingmodes by simply operating the operable member of the lens (lens switch).

Another feature of the invention is a camera system for an automaticfocusing having a photographic lens, comprising:

a manual operable member;

function-selecting means for selecting one of a plurality of functionseach having selectable focusing modes which relates to the automaticfocusing;

mode-selecting means for selecting one of the focusing modes of thefunction selected by the function-selecting means in response to anoperation of the manual operable member; and

focusing means for performing the automatic focusing on the basis of thefocusing mode selected by the mode-selecting means.

In short, the single manual operable member (lens switch) can controlplural functions and their working modes of the camera system.

Another feature of the invention is a camera system including a camerabody, a first and a second accessories each attachable to the camerabody, comprising:

a first operable member provided in the first accessory;

function-selecting means for selecting one of a plurality of functionseach having a plurality of control modes when the second accessory isattached;

mode-selecting means for selecting one of the control modes of thefunction selected by the function-selecting means in response to anoperation of the operable member; and

control means for controlling the function of the camera selected by thefunction-selecting means on the basis of the control mode selected bythe mode-selecting means.

The first accessory can be a lens and the second accessory can be an ICcard adaptable to the camera body. In this case, the lens switch(operable member) is effective only when the IC card is attached to thecamera body.

Still another feature of the present invention is a camera system for anautomatic focusing of a lens included in the camera system comprising:

first selecting means for selecting one from a first frame-segment and asecond frame-segment which has an area larger than the area of the firstframe-segment.

focus detecting means for detecting focus condition with respect to theselected frame-segment;

lens driving means for driving the lens to a focused condition on thebasis of the detected focus condition in one of a first and a secondmodes, where in the first mode the operation of the driving mean isinhibited after the detecting means once detects the focused conditionof the interchangeable lens, and in the second mode the operation of thedriving means is continued even after the detecting means detects thefocused condition of the interchangeable lens;

means, provided in the camera body, for selecting one of the first andthe second modes in response to the signal received by the receivingmeans to control the driving means in the selected mode;

an operable member; and

means for stopping driving the lens in response to an operation of theoperable member in any selected mode.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other objects and features of the present invention willbecome apparent from the following description taken in conjunction withpreferred embodiment thereof with reference to the accompanyingdrawings, throughout which like parts are designated by like referencenumerals, and in which:

FIG. 1 is a circuit diagram of a camera system constructed according tothe present invention.

FIGS. 2(a), 2(b), 2(c), 2(d), 2(e), 2(f), 2(g), 2(h), 2(i), 2(j), 2(k),2(l), 2(m), 2(n), 2(o), 2(p), 2(q), 2(r), 2(s), 2(t), 2(u), 2(v) areexamples of camera body display.

FIG. 3 is a flowchart of a routine for resetting the camera system whenthe battery is attached.

FIG. 4 is a flowchart of the initialization routine in FIG. 3.

FIGS. 5(a), 5(b) and 5(c) are flowcharts of data communications (I) to(III), respectively between the camera and an IC card attached thereto.

FIG. 6(a) is a flowchart of a routine performing exposure control andthe like.

FIG. 6(b) is a flowchart of the AF-mode determination routine in FIG.6(a).

FIG. 7 is a flowchart of a routine of lens data input.

FIG. 8 is a flowchart of a routine of flash data input.

FIG. 9(a) is a circuit diagram of an electric flashlight apparatus, andFIG. 9(b) is a circuit diagram of an interface thereof.

FIGS. 10(a), 10(b), 10(c), 10(d), 10(e) and 10(f) are flowcharts forvarious operations for the auto-focusing functions of the camera.

FIG. 11 shows an arrangement of focusing spots and photometry zones.

FIG. 12 is a flowchart of a setting routine of keys installed in thecamera.

FIG. 13, FIG. 14(a), FIG. 14(b), FIG. 15, FIG. 16, FIG. 17 and FIG. 18are flowcharts of setting routines relating to various key switches.

FIG. 19 is a flowchart of a routine for preparing photometric data.

FIG. 20 is a flowchart of a routine of AE lock.

FIGS. 21(a) and 21(b) are flowcharts of a routine for setting theaperture value and the shutter speed.

FIG. 22 is a flowchart of a routine of exposure operations.

FIGS. 23(a), 23(b) and 23(c), FIG. 24, FIG. 25 and FIG. 26 areflowcharts for the respective modes in the flowchart in FIG. 22.

FIG. 27 is a flowchart of a control by the IC card (particularly theprogram card).

FIG. 28 is a flowchart of a display routine.

FIG. 29 is a flowchart for performing the SELF function.

FIG. 30 is a flowchart of a routine for mode setting.

FIG. 31 is a flowchart of a routine of exposure control.

FIGS. 32(a) and 32(b) are flowcharts relating to one-frame winding of afilm.

FIG. 33 is a flowchart of an interrupt routine relating to closing arear lid.

FIGS. 34(a), 34(b), 34(c), 34(d) and 34(e) are examples of display whena card is attached.

FIGS. 35(a) and 35(b) show displays when a program card and mode settingcard are respectively attached.

FIG. 36 is a block diagram of a lens circuit.

FIG. 37 is a side view of a lens.

FIG. 38 shows a full view of a viewfinder display.

FIG. 39 shows an example of the camera body display.

FIGS. 40(a), 40(b), 40(c), 40(d), 40(e), 40(f), 40(g) and 40(h) areflowcharts showing various routines of the IC card.

FIG. 41 is a flowchart of a resetting routine.

FIG. 42 is a flowchart of an interrupt routine.

FIG. 43 is a flowchart of an exposure operating routine.

FIG. 44 is a program line diagram relating to the program card.

FIG. 45 is a perspective view of a camera body with an IC cardattachable to it.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

Hereinafter, description is made on an embodiment constructed inaccordance with the present invention in reference to the drawings. Inthe following description, not only the systems that relate to thepresent invention but also other systems and functions are explained fortotal understanding of the whole camera system.

FIG. 1 is a circuit block diagram of a camera system of this embodiment.In this FIG. 1, a micro-computer μC performs control and variouscalculations of the camera. The micro-computer μC comprises anElectrically Erasable Programmable Read Only Memory (EEPROM or E² PROM).

A focus condition detecting circuit AFct detects the focus condition,and includes: a Charge Coupled Device (CCD); an integration controlcircuit for controlling integration of charge produced in CCD; and ananalog-to-digital converting circuit. It receives information ofsubjects from three distance measuring areas (described later), andconverts this information from analog to digital value (A-D) to outputit to the micro-computer μC. LD₁ is an auxiliary light for assisting thefocusing operation in the dark.

A light measuring circuit LM performs measurement of light at four areas(described later), and A/D-converts the measured light values to givethem to the micro-computer μC as luminance information. A displaycontrol circuit DISPC receives display data and a display control signalfrom the micro-computer μC and causes various displays in a displaypanel on the camera body (DISP_(I)) and in a display area in theviewfinder (DISP_(II)).

FIG. 45 shows an arrangement in which an IC card CD is attachable to thecamera body CB through a card-holder HP. The IC card CD is electricallyconnected to the camera body CB when it is attached to the camera bodyCB.

In this embodiment, IC cards include two kinds of cards: a mode settingcard for setting various modes of the camera; and a program card fordetermining an exposure. Only one of them can be attached to the camerabody CB. The camera controls various functions is appropriate modesbased on the IC card attached. Detailed descriptions are made later. Aninterface IF is installed between the micro-computer μC of the cameraand an electric flash apparatus ST. A flash light adjusting circuit STCreceives the flash light reflected by subjects which comes through aninterchangeable lens, and stops the flashlight emission when theexposure quantity reaches a preset value. A lens circuit LE is installedin an interchangeable lens, which outputs information peculiar to thelens to the micro-computer μC of the camera. A lens control circuit LECNdrives the lens based on information about detected focus condition. Ashutter control circuit TV_(CT) controls the shutter based on a controlsignal from the micro-computer μC. An aperture controlling circuitAV_(CT) controls the diaphragm aperture based on a control signal fromthe micro-computer μC. A motor control circuit MD controls winding andrewinding of a film based on a control signal from the micro-computerμC. A buzzer BZ is provided for giving an alarm when the shutter speedbecomes too slow to cause blur. Symbol E designates a battery for powersupply, symbol D₁ designates a diode for blocking reverse current, andsymbol C_(BU) designates a large-capacity condenser for backing up themicro-computer μC. Symbols R_(R) and C_(R) designate a resistor and acondenser respectively for resetting the micro-computer μC when thebattery is attached. Symbol Tr₁ designates a transistor for controllinga power supply to the above-described circuits.

Next, description is made of the switches. A battery attachment switchS_(RE) is turned OFF when the battery is attached. When the switchS_(RE) turns OFF, a signal changing from the "L" level to the "H" levelis applied to a terminal RE of the micro-computer μC, and thereby themicro-computer μC is triggered to execute a resetting routine asdescribed later. An exposure mode changing switch S_(EM) normally opens.The exposure mode is changed by operating both this switch S_(EM) and anup switch Sup or a down switch Sdn as described later. A functionchanging switch S_(FUN) normally opens. A change of function (forexample, change between continuous-shot AF mode and one-shot AF mode) isperformed by operating both this switch S_(FUN), and the up switch Supor down switch Sdn. A card function enable/disable switch S_(CD)normally opens. This switch S_(CD) is operated to change between enableand disable of the card function when a card is attached to the camerabody. When a mode-setting card is attached and a data-setting mode isselected, a data-changing item is selected by this switch S_(CD).Further by operating the up switch Sup or down switch Sdn, desired valueis set in the data-changing item (detailed later).

S_(CDS) is a card-data setting switch which is used: to change modeswhen a mode-setting card is attached to the camera; and to set datanecessary to the function when a function card (program card) isattached.

A photometric switch S_(o) is operated to perform photometry for variousoperations of the camera except an automatic-focusing (AF). This switchS_(o) turns ON by just touching the operation button SB (FIG. 45). Whenone of the above-mentioned switches S_(EM), S_(FUN), S_(CD), S_(CDS) andS_(o) is turned ON, the micro-computer μC executes an interrupt routineINT₁ in FIG. 3 as described later. An AF switch S₁ starts an AFoperation. This switch S₁ is turned ON by slightly depressing (a firststroke) the operation button SB. A release switch S₂ triggars aphotographing operation, and it is turned ON by depressing a secondstroke (deeper than the first stroke) of the operation button SB. Aone-frame switch S_(WD) turns ON when one frame of a film is wound. AnAE lock switch S_(AEL) for performing an AE lock (exposure conditionlock) is a normally-opened push-type switch. A focusing mode changingswitch S_(AF/M) changes between the AF and manual-focusing.

A normally-opened change-data selecting switch S_(SE) is operated toselect data to be changed. A self-timer switch S_(SELF) is used to takea self-portrait (self mode switch). An aperture changing switch S_(AV)is used to change the aperture value when used in combination with theup switch Sup or down switch Sdn in M (manual) mode. If the up switchSup or down switch Sdn is operated in M mode without this switch S_(AV),shutter speed is changed.

A film detecting switch S_(FLM) detects whether or not a film is loadedin the camera body. This switch S_(FLM) is placed on a film-rail surfacein the vicinity of a spool chamber, and turns OFF when film existsthere.

A rear lid closed detecting switch S_(RC) turns ON when the rear lid isclosed and turns OFF when opened. When this switch turns ON, themicro-computer μC executes an interrupt routine as described later. Arewinding switch S_(RW) for starting rewinding of the film turns ON whenit is operated, and the interrupt routine (described later) is executed.When the rear lid is opened, it turns OFF. An IC card attachment switchS_(CR) turns OFF when an IC card CD is attached to the holder HP. Amicro-computer μC₂ of the IC card CD is reset when the switch S_(CR)turns OFF. The X-contact X turns ON when the first-curtain of theshutter clears the frame, and turns OFF on charging the shutter.

Up switch Sup performs change or addition of data, and down switch Sdnperforms change or subtraction. The switches Sup and Sdn respectivelyincrease and decrease aperture value if they are operated in combinationwith the aperture changing switch S_(AV) in M mode. They change shutterspeed if they are operated alone (i.e. S_(AV) is OFF) in M mode.However, when the appropriate function change is performed by an ICcard, the up and down switches Sup and Sdn work differently (i.e. changeaperture value with S_(AV) OFF, and change shutter speed with S_(AV)ON). An operation of the up switch Sup or the down switch Sdn isdetected when a terminal Isup or a terminal Isdn has become the "L"level, respectively.

In FIG. 1, a line WI connected in common with the above-mentionedrespective switches is connected to the ground GND.

Table 1 shows the above-described respective switches and theirfunctions in the lump.

Next, prior to making description on operations of this camera,description is made for two kinds of IC cards used here, namely, themode-setting card and the program card.

(I) Mode-setting card

This IC card purposes to provide the camera, responding to the intentionand photographing technique of a photographer, selection of functionsnecessary for the photographer from among many functions (controllablefunctions) of the camera, or selection of a mode in a function. Also,since unnecessary functions for a certain photographer can be omitted bythis feature, the camera has a simplified and good operability for thephotographer. Next, description is made for this card and the contentsof the display performed relating to it.

This IC card provides following seven kinds of function selectingoptions (i)-(vii).

(i) Selection among following four functions:

(a-1) highlight-reading/shadow-reading (H/S) exposure-mode changingfunction,

(a-2) exposure adjusting function,

(a-3) film winding-up mode (continuous-advancing/single-frame advancing)changing function, and

(a-4) single-spot AF/multi-spot AF mode changing function.

The photographer can choose function(s) from among these. For indicatingthese four functions, the display parts as shown in FIG. 2(b) areprepared among all display (DISP₁) on the camera body CB as shown inFIG. 2(a). In FIG. 2(b), the four display parts correspond respectivelyto the functions (a-1) through (a-4). When the photographer does notrequire the highlight-reading/shadow-reading exposure mode changingfunction (a-1), display is performed as shown in FIG. 2(c).

Displays relating to the modes of the functions are as follows:

Highlight-reading: FIG. 2(d)

Shadow-reading: FIG. 2(e)

Exposure adjustment+direction: FIG. 2(f)

Exposure adjustment-direction: FIG. 2(g)

Continuous-advancing mode: FIG. 2(h)

Single-frame advancing: FIG. 2(i)

Single-spot AF: FIG. 2(j)

Multi-spot AF: FIG. 2(k)

FIGS. 2(h), 2(i) and FIGS. 2(j), 2(k) respectively show the mode that isselected by the photographer only when the mode is changeable.Therefore, when the camera system does not allow the photographer tochange the mode by the proper reason, such displays (neither modedisplay) do not appear even though the camera system adopts either mode.Exception to this rule is: the multi-spot/single-spot photometry modewhen one is selected by a program card, and mode selected by the lensswitch S_(Q). A display as shown in FIG. 2(l) shows that the exposureadjusting function and the film winding-up mode changing function areselected, and control of the exposure adjustment to+direction and theone-shot mode are currently effective.

When the function-selecting operation is performed, selectablecombinations of functions among the above four (a-1)-(a-4) are limitedto 16 (No. 0-15 in Table 2(a)). Each combination appears sequentially asthe up switch Sup or down switch Sdn is operated. FIG. 2(b) showscombination No. 0 in which all functions are selected, and for exampleFIG. 2(c) shows combination No. 8 in which only H/S mode-changingfunction is missing.

(ii) Selection among the following four exposure modes:

(b-1) Program mode (P mode),

(b-2) Aperture priority mode (A mode),

(b-3) Manual mode (M mode), and

(b-4) Shutter priority mode (S mode).

The P mode is incorporated without fail as the base mode, and acombination of the remaining three modes (A, M and S modes) can beselected. Accordingly, there are eight combinations as follows:

    ______________________________________                                        No.        Mode Combination                                                   ______________________________________                                        0                P       A     M   S                                          1                P             M   S                                          2                P       A         S                                          3                P       A     M                                              4                P       A                                                    5                P                 S                                          6                P             M                                              7                P                                                            ______________________________________                                    

As to the display, among the four mode designations in FIG. 2(m), theselected combination is displayed, for example, as shown in FIG. 2(n) atmode setting. Display of only one selected exposure mode (A mode in FIG.2(o)) appears at photographing. PROGRAM is specially displayed in thecase of the P mode (FIG. 2(p)).

(iii) Selection of functions relating to the AE

(c-1) Function of AE-lock switch S_(AEL)

(1) AE is locked with power of the camera held while the AE-lock buttonis pushed.

(2) AE is locked when the AE-lock button is once pushed, and releasedwhen it is pushed again.

(c-2) Changing the changing-step of shutter speeds

Changing-step of the shutter speeds is changed from normal 1 Ev to 1/2Ev.

(c-3) Sub-mode change in the M-mode of the exposure mode between

(1) M₂ -mode in which: when the aperture-changing switch S_(AV) is OFF,the aperture value is changed only by the operation of the up-switch ordown-switch; when the aperture-changing switch S_(AV) is ON, the shutterspeed is changed, and

(2) M₁ -mode in which: when the aperture-changing switch S_(AV) is OFF,the shutter speed is changed; when the aperture changing switch S_(AV)is ON, the aperture value is changed.

When setting these functions, display as shown in FIG. 2(v) appears,where the last three digits usually used for the shutter-speed displayare used for indicating the mode change and the film counter displaypart is used for indicating the sub-mode. In FIG. 2(v), "F-5" indicatesthe mode change, and the number "2" indicates the combination as listedin Table 2(e).

(iv) Selection between two modes below

(d-1) count-up or count-down of a film counter,

(d-2) auto-return or non-auto-return at the completion of the filmwinding,

(d-3) film leader part is wound into the film cartridge or left outsidethe cartridge at the completion of rewinding, and

(d-4) operation or non-operation of a blur-warning buzzer BZ.

Sixteen combinations of the modes in the above functions as shown inTable 2(b) are possible, and the display is performed as shown in FIG.2(q). Similarly to the above case, the shutter speed display part isused for the function indication and the film counter display part isused for the combination number as listed in Table 2(b).

(v) As for the selection of functions by the operation of the switchS_(Q) on the lens, following AF (auto-focusing) modes are selectable.

(i) When the lens switch is not operated and the AF-mode is selected

(E-1) One-shot AF (focus-following determination after once focused) atthe multi-spot (continuous AF may be selected in the program mode)

(ii) When the lens switch is operated

(E-2) Focus-lock

(E-3) Single-spot AF

(E-4) Continuous-AF

These are indicated as shown in FIG. 2(r), where "F-2" indicates theselection by the lens switch S_(Q), and "3" indicates the (continuousAF) mode number. The selected numbers and their corresponding functionsare listed in Table 2(c).

(ii) Setting the length for the self-timer

The time length is selected among 2, 5 and 10 seconds. This selection isindicated as shown in FIG. 2(s), where "F-3" indicates the self-timersetting and "1" indicates the set timer length (in this case, 5seconds). The numbers and the set timer lengths are listed in Table2(d).

(vii) Changing the AE-level

This changes the exposure level by a certain amount. The amount can beselected among

    +0.5,+0.25,0,-0.25,-0.5(Ev),

Which are numbered as 0, 1, 2, 3, 4, respectively. This is displayed asshown in FIG. 2(t), where "F-4" indicates the AE-level changing mode,and "3" indicates that the AE-level is changed by -0.25 Ev.

By operating the switch S_(CD), the functions (i)-(vii) are cyclicallyselected, and by pushing the up-switch or the down-switch, a mode in theselected function can be set. The modes in a function are alsocyclically selected by the up- or down-switch.

(II) Program card

This program card performs control of an exposure program made for thepurpose of photographing at a high shutter speed without causing a blurfor a moving subject at a bright place. In addition, the program cardperforms various controls of the camera (detailed description is madelater).

Next, description is made for operation of the camera based onflowcharts of the micro-computer μC as shown in the drawings, anddescription is made for each part of the flowcharts.

DESCRIPTION FOR THE OPERATION

When a battery E is attached to the camera body, the battery attachmentswitch S_(RE) turns OFF, and a signal changing from the "L" level to the"H" level is inputted to a terminal RE. A clock oscillator, which isprovided in the micro-computer μC, starts oscillation in response to theentry of the signal, and the clock signal is sent also to the IC card CDthrough a terminal φ. Then, the micro-computer μC executes a RESETroutine as shown in FIG. 3. In this routine, first, the micro-computerμC performs initialization due to the attachment of the battery (step#5). FIG. 4 details this subroutine.

In FIG. 4, first, the micro-computer μC inhibits all interrupts to thisroutine, and resets all output terminals to the "L" level (#100 and#102). Also, it resets all flags in a random access memory (RAM)prepared in the micro-computer μC (#105) and sets a flag BATF showingattachment of the battery (#110). Table 3 lists the functions attachedto the flags in the RAM. Throughout this embodiment, set and reset offlags correspond respectively to 1 and 0 of the bits. Since all theflags except BATF are reset, the exposure mode is set to the P mode, thesingle-spot (S)/multi-spot AF (A) is set to the multi-spot AF mode (A),and the one-shot (S)/continuous-shot (C) is set to the one-shot mode(S), and the mode performing neither exposure adjustment or highlight(H)/shadow (S) is set.

Next, it is detected by checking the content of the E² PROM, (content ofMSb₄, specifically, as described later) whether or not the mode-settingcard (one of the above-described two kinds of the IC cards) has beenattached once and mode setting has been already performed. Then, if thesetting has not been made, interrupts except an interrupt CDINT due toan attachment of the IC card are inhibited (#135, #140), and thereafterprocessing returns. If the mode setting has been made, the set mode isread out from the contents of the E² PROM (specifically, contents ofMSb₀ -MSb₃ as described later), and the display of the change data isdetermined.

It is sequentially detected whether or not the mode is set in thehighlight/shadow mode (H/S mode), the exposure adjusting mode (+/-mode), the single-frame/continuous advancing changing mode (S/C mode),and the single-spot/multi-spot AF changing mode (S/A mode), and if anymodes is set, each change data of the set mode is set (#145-#182). Table4 and Table 5 show setting mode data of the E² PROM and change data ofthe RAM, respectively. As to the display, the above-mentioned steps(#145-#182) are equivalent to positioning of a cursor as describedlater.

Next, control for sending data to a display control circuit DISPC isexecuted to display these setting modes. First, a terminal CSDISP is setto the "H" level to inform the start of data communication to thedisplay control circuit DISPC, data as shown in Table 9 is prepared, andserial communication is performed. When data transfer is completed, theterminal CSDISP is set to the "L" level, to inform completion of theserial communication to the display control circuit DISPC (#185-#200).

Here, brief description is made on the operation of serialcommunication. First, the clock signal is outputted from a serial clockterminal SCK in response to an instruction of serial communication. Insynchronism with the rise of a pulse of this clock signal, the outputside outputs data by one bit, and in synchronism with the fall, theinput side inputs one bit data. By repeating this operation asnecessary, the serial communication is performed. FIG. 2(u) shows anexample of display in the normal photographing state.

The contents of display include, in an example shown in FIG. 2(u), theshutter speed [1000], the aperture value [5.6], the AE mode [PROGRAM],the count of film frames (it can also indicate presence or absence offilm) [17], focusing mode [ONE SHOT AF], and the function mode(indicated by the bottom figures).

These display data are listed in Table 9, and the following explanationaccords to the display control sequence. The display data are read outof the E² PROM where: at the address 03H, bits b₂ -b₄ indicate AE-modeselected by the IC card CD; at 04H, bits b₀ -b₇ indicate mode-setting bythe IC card CD; at 08H, bits b₄ -b₇ and at 09H, bits b₀ -b₇ indicate theselected numbers of the change modes (iv)-(vii) set by the IC card CD.The data are set at appropriate addresses. The data-change display data(b₀ -b₂ of 05H), the data indicating the battery attachment (b₄ =1 onOAH) and other data (b₁ -b₃, b₅, b₆ =0 in OAH) are set at appropriateaddresses.

When the battery attachment signal is received, the display controlcircuit DISPC displays as the figures of from FIG. 34(a) to FIG. 34(e),corresponding to the function data in the E² PROM, on the display panelDISP_(I) for 0.5 seconds.

The micro-computer μC waits 2.5 seconds at step #205 to allow the abovedisplays of FIGS. 34(a)-(e). Then, the frame number N_(I) (MSb₁₃ -MSb₁₈)and the film speed (sensitivity) Sv (MSb₁₉ -MSb₂₄) are read out from theE² PROM and stored in the corresponding region to N_(I) and Sv of theRAM at step #207. At the following step #210, a card data communicationI is performed to check whether a card is attached and, if attached, tocheck its kind.

FIG. 5(a) shows the card data communication I subroutine. In this FIG.5(a), first, a terminal CSCD is set to the "H" level to inform the ICcard CD side the start of a communication, by which the data outputtingmode is set, and data showing the data communication I (Table 6) is sentto the IC card CD side by serial transfer (#300 and #305).

The micro-computer μC waits for a predetermined time necessary for theIC card CD side to input this data, prepare required data and outputthem (#310). Then, the data are serially sent from the IC card CD sideto the micro-computer μC (#315), and therefore the micro-computer μCoperates in the inputting mode. On completing this serial transfer, theterminal CSCD is set to the "L" level (#320).

In this operation, the IC card CD side outputs 2-byte data: the firstbyte indicates presence/absence of the IC card and, if present, itskind; and the second byte indicates functions for the camera operation.The two bytes are stored in the camera at addresses 20H and 21H.

Next, the kind of the IC card is discriminated in step #321. Here, inthe case of the mode setting card, the transferred data show only thekind of the IC card (the second byte is "0") and therefore processingreturns immediately. However, in the case of the program card, thetransferred data contain function data showing either one of each ofcontinuous-/one-shot mode of the AF (detailed description is madelater), single-spot/multi-spot of the AF, single-spot/multi-spot of thephotometric zone or data showing that no selection is made (i.e. to beset by the photographer), so, judgment is made on whether or not thecard function has been selected (#322). When the card function isselected (CDFNF=1), data setting is made by updating bits Fb₂, Fb₃, Fb₈and Fb₁₂ of the function data (#323), and processing returns. On theother hand, when the card function is not selected, processing returnswithout updating the data.

Reverting to FIG. 4, in step #215, the micro-computer μC determines fromthe inputted data (Table 7) whether or not the IC card is attached, andwhen it is not attached (b₀ =0 in 20H), processing returns withoutdisplaying the kind of the IC card. When the IC card is attached (b₀ =0in 20H), the micro-computer μC determines the kind of the IC card, andin the case of mode-setting card (b₁ =1 in 20H), it prepares displaydata (b₀ =0 in 08H) for this data card (#230), while in the case ofprogram card (b₁ =0 in 20H), it prepares display data (b₀ =1 in 08H) forprogram card (#245). When the card function is ON (b₀ =1 in 04H) and thecontrol signal OAH=0, 0, 0, 1, 0, 0, 0, 0 (which respectively correspondto b₀ -b₇), all the display data are outputted to the display controlcircuit DISPC (#250-#260), which displays, as shown in FIGS. 35(a) and(b), for a preset period (0.5 seconds) according to the kind of the ICcard. FIG. 35(a) is displayed when a program card is attached, and (b)when a mode setting card is attached. In the case of mode setting card,the card function is automatically set ON, so that the data is preparedand sent.

The micro-computer μC waits for the preset time (0.5 seconds) for thisdisplay (#270), sets a flag CDFNF which indicates that the cardfunctions are operable (#273), and thereafter permits all interrupts(#275), proceeding to step #10 in FIG. 3.

In FIG. 3, after completing the above-mentioned initialization (#5),judgment is made in step #10 by the level of a terminal IP₅ on whetheror not any of the exposure mode changing switch S_(EM), the functionchanging switch S_(FUN), the card function enable/disable switch S_(CD),the card data setting switch S_(CDS) and the photometric switch S_(O) isturned ON. When none of the switches is turned ON (IP₅ ="H"), in step#15, further judgment is made on whether or not the battery attachmentflag BATF is set. When it is set, it is assumed that processing comes tothis step without performing anything after attaching the battery, andprocessing jumps to step #45, and the micro-computer μC ceases displayand stops the operation by the IC card CD in steps #45 et seq. First,the display data is set to be 0, 0, 1, 0, 0, 0, 0, 0 at OAH, and thedata is sent to the display control circuit DISPC (#45-#60).Accordingly, the whole display ceases.

the micro-computer μC, as described above, sends the ceasing data to thedisplay control circuit DISPC, and then sends a sleep sign (instructionof temporarily disabling the IC card) signal to the IC card CD(#65-#75). As shown in Table 6, this sleep sign includes both bits Csb₀and Csb₁ of 1.

Thereafter, a transistor Tr₁ is turned off by turning a terminal PW to"L", a flag AELF showing AE-lock and the flag BATF showing batteryattachment are reset respectively, all interrupts are permitted, andprocessing halts (#77-#95). The clock also stops oscillation by thishalt.

In the above-mentioned step #10, if at least one of the five switchesS_(EM), S_(FUN), S_(CD), S_(CDS) and S_(O) is ON, processing proceeds tostep #91, and the flag BATF showing battery attachment is reset, and inthe next step #92, a flag OPF showing that one of the five switches isoperated is set, and a routine SO is executed, and processing returns tostep #10. The routine SO performs photometry, AF, display, exposurecontrol and the like, whose detailed description is made later.

In step #10, when none of the above-mentioned five switches is ON andthe battery is not attached (BATF=0), judgment is made on whether or notthe flag OPF is set (#15, #25). This flag OPF is set when processing haspassed through the routine SO once. When this flag is set, a timer T₁for power-hold is reset and started, and the flag OPF is reset (#30,#35). Here, the timer T₁ is reset and started (#30) because power-holdmust be prolonged by a predetermined time for a possible second turn-onof the switch although processing has passed through the routine #93once from step #10 through steps #91 and #92, and at present none of theabove-mentioned five switches is depressed. The flag OPF is reset atstep #35 in order to show that processing has passed through step #30.

When the flag OPF is not set in step #25, processing skips steps #30 and#35 and proceeds to step #40, where it is determined whether or not 10seconds have elapsed from the start of the above-mentioned timer. When10 seconds have elapsed, processing proceeds to steps #45 et seq., andperforms ceasing of the display and disabling of the IC card CD. When 10seconds have not elapsed, processing goes to step #93 for repeating theroutine SO.

Next, description is made for control of the camera when the IC card CDis attached. When the IC card is attached, a signal turning from the "L"level to the "H" level is inputted to a terminal CDINT of themicro-computer μC, and an interrupt routine CDINT as shown in FIG. 4 isexecuted. When processing enters this routine, the micro-computer μCstops lens driving and sets the flag OPF to hold power (#290, #292).Then, in order to preferentially display the kind of the attached card,all interrupts to this flow are inhibited in step #295, and processingproceeds to step #210. At steps #210 et seq., the kind of the IC card isdisplayed, as described above, for a predetermined time as shown in FIG.35(a) or 35(b), the flag CDFNF is set to permit all interrupts, andprocessing returns to the parent flow (step #30 in FIG. 3). When any oneof the switches S_(EM), S_(FUN), S_(CD), S_(CDS) and S_(O) is ON and asignal turning from the "H" level to the "L" level is inputted when theinterrupts are permitted, processing enters an interrupt INT.sub. 1 asshown in FIG. 3, and executes the flow of steps #90 et seq.

When any of the interrupts INT₁, INT₂ and CDINT is applied in the haltstate, the clock starts oscillation, and the clock signal is sentthrough the contact φ to the IC card.

Next, description is made on the routine SO triggard by the switch S_(O)referring to FIG. 6(a).

First, the interrupt INT₁ to routine SO is inhibited (#400). This isbecause if the interrupt INT₁ of FIG. 3 is applied during the control ofthis routine SO, control operation does not proceed forward. Next, bysetting the terminal PW of the micro-computer μC to the "H" level instep #405, the positive voltage is applied to the base of the PNPtransistor Tr₁ through an inverter IN₁, and thereby this transistor Tr₁turns on, and power is supplied to the photometric circuit LM, the AFcircuit AF_(CT) and other circuits. Next, information peculiar to theattached lens is inputted from the lens circuit LE to the micro-computerμC (#410). This routine is shown in FIG. 7, and is explained as follows.First, a terminal CSLE is set to the "H" level (#600), and a serialcommunication is performed to input data from the lens (#605). FIG. 36shows the circuit provided in the lens. Clock pulses from the camerabody are counted in a decoder 2 and an address data is generated. Whenthe address data is equal to a predetermined address, it indicates alens data that changes according to a zooming operation or a lens datathat changes according to a set focus distance. At that time, the focallength or the set focus distance is detected by the correspondingencoder 3 or 4, and the address is changed according to the detecteddata by an address circuit 5. Then the necessary data is sent to thecamera body. As shown in FIG. 37, the lens 10 has a switch S_(Q). Fordifferent states of the switch S_(Q), different addresses should beassigned by the addressing circuit 5. The addresses are sent to a ROM 6of the lens circuit, and the ROM 6 outputs data corresponding to theaddresses. The data is output in parallel from the ROM 6 but isconverted into serial signal by a parallel/serial converter circuit(P/S) 7 to be sent to the camera body.

The lens data is now explained referring to Table 12. The lens dataincludes: presence/absence of the lens; the largest aperture (openaperture value) Avo of the lens; the smallest aperture (the maximumaperture value) A_(VMAX) ; the set focus distance; the focal length ofthe lens; a coefficient for (lens moving distance)/(defocus amount);ON/OFF of the lens switch S_(Q) ; a data LOK for allowing/prohibitingthe lens movement; and so on. The data LOK, which is not used in thecamera of the present embodiment, changes from "1" to "0" when theauto-focusing (AF) operation is unnecessary or impossible. Therefore,when the AF is always possible, the data LOK is set at "1", and there isno need to use two bytes for the data. When the camera body receivesthis data, it stops the motor.

In the lens ROM 6, the data are stored as listed in Table 10, where datain the address regions (A) and (B) are very similar except thoserelating to the switch S_(Q) and the data LOK. Generally, informationabout a lens is little, so that several kinds of lens information of thesame functions can be stored in a ROM. Among them, appropriateinformation is selected according to the lens used. In this case, theamount of information about a lens is first determined, and accordinglya ROM (the size of ROM) is determined. If the new data for indicatingthe ON/OFF of the switch should be included in the already determinedROM, data-change corresponding to the addresses for the ON and OFF ofthe switch will be needed. This means another two bytes (ON, OFF) shouldbe included in the memory region for one kind of lens. If the ROM has avacant memory space for one kind of lens, the two bytes, 06H and 08H inTable 11, are accommodated in the ROM, and either byte is selectedaccording to the ON/OFF of the lens switch S_(Q). If, on the other hand,the ROM does not have such a vacant memory space for one kind of lens,the same data except for the switch are stored in plural memory regionsof the ROM ((A) and (B) in Table 10), and either of the regions isselected according to ON or OFF of the switch. In case of Table 10, datain OOH through 07H are sent to the camera when the switch S_(Q) is OFF,and 10H through 17H (b₀ =0, AF motor stop) when S_(Q) is ON.

In Table 10, xxx of the address number means the portion of the addressthat changes according to the zoom setting data and focus distancesetting data, both sent from the encoders 3 and 4.

The data LOK indicates whether or not the lens is not operable in AF.Therefore, according to this flag data, the camera prohibits AFoperation (i.e. do not drive lens) and performs only focus detectionoperation. For example, some zoom-lenses that can be used in a macromode cannot operate the AF in the macro mode. In the macro mode, thedata LOK is set so that b₀ =0. If the zoom-lens is used out of the macromode, the data LOK is set so that b₀ =1 to allow AF operations. Thisdata change is possible by the address change or by the ROM change-over.

Here, a case is provided where this lens is attached to a different typeof camera that can read only this LOK data from the lens, and thephotographer wants to use it in a focus-lock mode. The focus-lock is tostop the Af operation when certain focus condition is obtained. In thiscase, the data sent from the lens to the camera can be changed to (B) inTable 10 (06H and 07H in Table 11) by turning the switch S_(Q) OFF at adesired time point to lock the focus.

After receiving the lens data, the terminal CSLE is set to the "L" level(#610) and the processing returns.

Reverting to FIG. 6(a), at step #415, the micro-computer μC inputsinformation from the electric flash apparatus ST. This informationincludes three kinds of information: a guide number GN showing thecapacity of the flash apparatus ST; whether or not charging iscompleted; and whether full light emission or auto light emission(described later). Here, description is made on operation of acommunicating method of that information. First, FIG. 9(a) is a circuitdiagram of the flash apparatus ST, and FIG. 9(b) is a circuit diagram ofthe interface IF.

As shown in FIG. 8, the micro-computer μC sets a terminal CSST to the"H" level for a certain time t₁, and outputs this signal to the flashapparatus ST (#650). The flash apparatus ST detects the duration t₁ ofthis signal, recognizes to be the data output mode, and outputs data insynchronism with the clock signal from the micro-computer (#655).

The interface circuit IF as shown in FIG. 9(b) transfers a signal of theterminal CSST of the micro-computer μC to a terminal ST₁ of the flashapparatus through an OR circuit OR₂₁. At this time, the signals inputtedto the OR circuit OR₂₁ are all "L" level. In the flash apparatus ST, asignal from the terminal ST₁ is inputted to an AND circuit AND₁₁, andconsequently the AND circuit AND₁₁ turns to the enabled state, andoutputs a signal comprising pulses from an oscillating circuit OSC to acounter CNT₁₂. The counter counts the pulses to measure the time. Whenthe time t₁ is reached, a terminal T₁ is set to the "H" level, and an RSflip-flop SR₁₁ is set. At this time, another RS flip-flop SR₁₂ is keptreset intact, and its output Q is "H" level. Accordingly, an AND circuitAND₁₂ turns to the enabled state.

Next, the micro-computer μC outputs a clock signal SCK for serialcommunication. This clock signal SCK is outputted to the terminal ST₁ ofthe flash apparatus ST through the OR circuit OR₂₁ of the interfacecircuit IF. In the flash apparatus ST, the inputted clock signal SCK isinputted to a terminal for clock signal of a parallel/series convertingcircuit P/S through the AND circuit AND₁₂. This parallel/seriesconverting circuit P/S outputs the guide number GN, a signal showing thestate of charge completion, and a signal showing full light emission orauto light emission in synchronism with the clock signal. A counterCNT₁₁ of the flash apparatus ST counts the inputted clock signal SCK,and after counting a predetermined required number, outputs the "H"level to an OR circuit OR₁₁. This signal is inputted to a reset terminalof a counter CNT₁₂ through the OR circuit OR₁₁ and a one-shot circuitOS₁₁, and therefore the counter CNT₁₂ is reset. The above-mentionedcounter CNT₁₁ resets after counting a predetermined number of clockpulses.

The electric flash apparatus ST has, in addition to the above-mentionedcircuits, a battery E_(ST) as the power source, a boosting circuit UVfor boosting the voltage of the battery E_(ST) to a voltage required forflashlight emission, a rectifying diode D₁₁ for rectifying the voltageoutputted from this boosting circuit UV, a main condenser MC for storingenergy required for flashlight emission, a charging-voltage detectingcircuit CVD for detecting the charging-voltage of the main condenser MCand a light emission controlling circuit FCC for controlling start andstop of the light emission.

Reverting to FIG. 6(a), an AF mode is determined at step #417, which isexplained in detail by FIG. 6(b). First, it is determined at step #4000based on the information from the lens whether the lens switch S_(Q) isON. When the lens switch S_(Q) is ON, a flag OPF is set at step #4005 inorder to start counting the power-hold time (10 seconds). Then at step#4010, data is read out from the E² PROM that indicates whether the AFmode set by the IC card is the focus-lock mode. When it is thefocus-lock mode (MSb₂₆, ₂₇ =1, 1), a bit Fb₁₄ corresponding to thisinformation is set (#4020), and a bit Fb₁₃, which is used as a flag toindicate whether an auxiliary light is necessary, is reset (#4025) inorder to save the battery power because AF operations are unnecessary inthe focus-lock mode. Further, at step #4030, a follow-flag is reset inorder not to display the subject-following mode in the viewfinderdisplay DISP_(II) because the subject-following operations areimpossible since the lens driving is prohibited in the focus-lock mode.

Then it is determined at step #4035 whether the AF mode set by the ICcard CD is the single-spot AF mode. This step (#4035) also follows step#4010 when the focus-lock mode is not set by the IC card CD. If it isthe single-spot AF (Spot-AF) mode (Mb₂₆, ₂₇ =0, 1), it is thendetermined at step #4036 whether a flag SQ0NF is set. The flag SQ0NF isset when this routine is first executed after the lens switch S_(Q) isturned ON. If the flag SQ0NF is reset, the value of the bit Fb₂ iscopied to the bit Fb₁₅ at step #4037 in order to preserve themulti-spot/single-spot mode before the lens switch S_(Q) is turned ON.If the flag SQ0NF is set, the step #4037 is skipped. In any case, theprocess goes to step #4040, where the bit Fb₂ is set to indicate thesingle-spot AF mode, and then to step #4042, where a multi-/single-spotmode display flag is set irrespective of the selection by the IC cardCD, followed by step #4045. If it is not the single-spot AF mode at step#4035, these steps #4036-#4042 are skipped, and step #4045 is directlyprocessed. At step #4045, it is determined whether the continuous AFmode or not. If it is in the continuous AF mode (MSb₂₆, ₂₇ =1, 0), a bitcorresponding to this mode is set (Fb₈ =1) at step #4050, the auxiliarylight flag bit is reset (Fb₁₃ =0) at step #4055, and the flag SQ0NF isset at #4057 to indicate that this routine is once executed. Then theprocess returns.

Here, the auxiliary light, which is used in focusing operations in adark place, is not used in the continuous AF mode because the batterypower will be consumed very much if the auxiliary light is used at everyfocus adjusting action occurring many times in this mode.

If it is not in the continuous AF mode at step #4045, the flag SQ0NF isset at step #4057, and the process returns. If the switch S_(Q) is ON,since one among the focus-lock, single-spot AF and continuous AF is setby the IC card CD, one among steps #4010, #4035 and #4045 is determinedYES and the other two are determined NO in this routine.

If the lens switch S_(Q) is OFF at step #4000, the process goes to step#4060. First the bit Fb₁₄ used as a flag indicating the focus-lockfunction is reset here.

Then, at step #4061, it is determined whether single-spot/multi-spot AFmode is set by the IC card CD. If no mode setting is made by the IC cardCD, the multi-/single-spot display flag is reset at step #4062 to ceasethe display, and further it is determined at step #4063 whether the flagSQ0NF is set to know whether this is the first time since the switchS_(Q) is turned OFF. If this is the first time (SQ0NF=1), the value ofbit Fb₁₅ is copied to bit Fb₂ at step #4064 to resume the AF mode beforethe switch S_(Q) is turned ON. If the flag SQ0NF is reset at step #4063(i.e. the switch S_(Q) is not operated), the step #4064 is skipped. Inany case, the process goes to step #4080.

If it is determined at step #4061 that the mode setting is done by theIC card CD, the multi-/single-spot display flag is set at step #4063 todisplay the mode. Then it is determined at step #4067 whether the modeis the single-spot AF (Spot-AF). If YES, the corresponding bit Fb₂ isset at step #4070, and if NO, the bit Fb₂ is reset at step #4075, bothfollowed by step #4080. This step #4080 determines whether a setting ofone-shot AF/continuous AF is made. If no setting is made, bit Fb₈ isreset (Fb₈ =0) at step #4090 to automatically set the one-shot AF mode.If any setting is made, it is then determined at step #4085 whether itis the one-shot AF mode. If YES, the bit Fb₈ is reset at step #4090, andotherwise the bit Fb₈ is set at step #4095 to set the continuous AFmode. In any case, the flag SQ0NF is reset at step #4097 and the processreturns.

Reverting to FIG. 6(a), after determining the AF mode, themicro-computer μC performs the card data communication I with the ICcard CD to discriminate the kind of the IC card CD (#420). This carddata communication I has been already described in reference to FIG. 5,and therefore the description is omitted here. After this card datacommunication, judgment is made at step #425 on whether or not a flagSETF showing that the IC card is attached and the data setting mode isset. If the flag SETF is not set, whether or not the AF starting switchS₁ is ON is judged by the level of a terminal IP₆ (#427). If the switchS₁ is ON (IP₆ ="L" level), control of AF is performed (#429). On theother hand, when the flag SETF is set, or the switch S₁ is OFF (IP₆ ="H"level), a signal for stopping an Af driving motor is outputted to thelens control circuit LECN to stop lens driving in order to inhibit AFoperation (#431), a flag AFNF showing that AF is not performed is set(#435), and a flag S10NF showing the ON state of the switch S₁ is reset(#437). By inhibiting the AF control and preferentially performing datasetting when the data setting mode is set, the AF operation is notperformed even if the AF starting switch S₁ is mistakenly turned ONduring data setting.

Here, description is made on the above-described AF control based onflowcharts as shown in FIG. 10(a) to FIG. 10(f) in reference to FIG. 11showing the focusing spots in the photographing frame. Photometric zonesare also described in the figure.

First, in FIG. 11, the outside rectangle 12 shows the photographingframe. Symbols LM₁ to LM₄ designate photometric zones, and symbols AF₁to AF₃ focusing spots. First, description is made for the focusingspots. In the camera, change between single-spot/multi-spot AF modes canbe made, and when the single-spot AF is selected, AF is performed basedon information on a subject in the central focusing spot AF₂, and whenthe multi-spot AF is selected, AF is performed so that a subject nearestto the camera is focused by selecting one spot corresponding to thenearest subject from among the three spots AF₁ to AF₃. Accordingly, inthe multi-spot AF mode, the area for detecting the focus condition islarger or broader than in the single-spot AF mode. Hereinafter, AF₁ isreferred to as the first island, AF₂ as the second island, and AF₃ asthe third island, respectively.

Description is made for AF control as shown in the flowchart of FIG.10(a). First, the flag S1ONF is checked at step #701 to determinewhether the AF starting switch S₁ is first turned ON. If the flag S1ONFis not set, which means this routine is executed for the first timeafter the switch S₁ is turned ON, a flag AFEF is reset at step #702which was set when a right focusing was obtained. In any case, theprocess goes to step #705, where it is judged whether or not the lens isattached based on a signal inputted from the lens to the micro-computerμC (#705). If the lens is not attached, a flag AFNF is set at #800 toindicate that no AF control is executed. If the lens is attached, it isjudged in accordance with the level of a terminal IP₁₀ whether or notthe focusing mode is the AF mode (#710). If the AF mode is selected, itis then determined at step #711 whether the focus-lock mode is selectedby checking the bit Fb₁₄. If the M mode is selected, the auxiliary lightmode is prohibited by resetting the bit Fb₁₃ at step #798, a manualfocusing subroutine [MFOCUS] is executed at step #799, a flag AFNF isreset to indicate that no AF operations are performed, and the processproceeds to step #780. At this step, it is determined whether the focusis right. If YES, the flag AFEF is set (#785), otherwise reset (#790),and the process returns.

The subroutine for the manual focusing is explained referring to FIG.10(d). First in this routine a flag MFF is set at step #7100 to indicatethe manual focusing mode, and an integration control is executed at step#401 where the integration is controlled and the data-dump is executed.In the manual focusing, only the second island (AF₂) is used, so thatthe corresponding flag AF2F is set at step #4102. Then the defocusamount at this island (DF₂) is calculated at step #4105, whose value DF₂is put in the defocus amount DF which is used as the final focusingdetermination at step #4110, and the process returns.

The integration control of step #4101 is explained in detail referringto FIG. 10(b). When the right focusing is impossible (LCONF=1) or whenit is not in the auxiliary-light mode (Fb₁₃ =0), the auxiliary light isnot flashed, but the integration and the data-dump are executed (#4150,#4155, #4165, #4170). When the right focusing is possible and theauxiliary-light mode is selected, the auxiliary light starts lightingbefore the integration, the terminal OLD is set at "H" level for apredetermined time, and the integration is performed (#4150-#4170).

Reverting to FIG. 10(a), when the focus-lock mode is selected (Fb₁₄ =1)in the AF mode (#710, #711), the lens-driving operation is stopped atstep #712, and check the flag AFEF at step #713 to know whether theright focusing has been obtained. If the flag AFEF is set, the [MFOCUS]subroutine is executed at step #714, otherwise the process goes to step#799. The flag check at step #713 is executed because the subject-lensdistance at the right focusing condition is used in the photometricprocess (specifically, the distance data is used to calculate the imagemagnification ratio) when the focus is locked after the focus isadjusted.

When the focus-lock mode is not selected in the AF mode (#710, #711)(Fb₁₄ =0), the non-AF flag AFNF and the manual-focusing flag MFF arereset (#715, #717). The micro-computer μC controls storage (integration)of charge generated in a CCD according to the quantity of incidentlight. After completing the integration, the micro-computer inputs dataobtained by A-D-converting the value of integration (#720). Then, it isjudged whether or not the mode is the single-spot AF (based on functiondata Fb₂) in step #730, and if the single-spot AF is selected (Fb₂ =1),the single-spot AF subroutine is executed at step #735, which isdetailed in FIG. 10(d). In this subroutine, first, a flag AF2F forshowing that AF is performed based on the second island AF₂ is set, anda defocus amount DF₂ of the second island AF₂ is calculated from thedetected data, and a value obtained by this calculation is set as thedefocus amount DF for driving the lens (#4102-#4110).

On the other hand, when the multi-spot AF mode is selected at step #730,the ordinary AF control subroutine as shown in FIG. 10(c) is executed atstep #740. As described before, the defocus amount DF is calculatedbased on one of the three islands AF₁, AF₂, AF₃ spotting the nearestsubject from the camera (#4200-#4215). The process for calculating thedefocus amount is explained referring to FIG. 10(f). The principle is asfollows: Positive defocus amounts represent that the subject is nearerto the camera with respect to the infocus position, and negative defocusamounts represent that the subject is behind the infocus position. Theamplitude of the defocus amount represent the distance from the subjectto the infocus position. Therefore, in this subroutine, thealgebraically largest defocus amount among those from the three islandsAF₁, AF₂ and AF₃ is taken because the nearest subject is considered asthe principal subject.

The micro-computer μC, in the FIG. 10(f) routine, resets the three flagsAF1F-AF3F representing respectively the islands (#810-#820), finds thelargest defocus amount (#825, #830, #845), and put the largest defocusamount value into DF to be used in driving the lens (#835, #850 or#860). At the same time, the corresponding flag is set (#840, #855 or#865).

After calculating the defocus amount DF, returning to FIG. 10(a), it isdetermined at step #745 whether the focusing is possible (i.e. thecalculated data is reliable). If, for example, the contrast of the imageis very low, the focusing is assumed impossible. When the focusing isdetermined impossible at step #745, it is then determined at step #747whether the auxiliary-light mode is selected. If YES, a flag LCONF isset at step #752 to stop focusing operations because such operations aremeaningless any more, and the flag indicating the subject-following mode(follow-flag) is reset at step #755. If the auxiliary-light mode is notselected at step #747, it is determined at step #757 whether theluminance is low. If the luminance is not low, the process goes to step#752 because no auxiliary light is necessary. But if the luminance islow, the auxiliary-light mode is selected at step #760 (Fb₁₃ =1), andthe follow-flag is set at step #755.

When the focusing is determined possible at step #745, the flag LCONF isreset at step #762 and it is determined, based on the defocus amount DF,whether the infocus condition is obtained at step #765. If YES, theproper flag AFEF is set at step #767 and a flag AFEIF is set at step#772, followed by the step #755. If NO, a lens-driving subroutine asshown in FIG. 10(e) is executed at step #775 before returning. First inthe subroutine as step #775 of FIG. 10(e), the bit Fb₈ is checked atstep #4250 to know whether the current mode is one-shot AF or continuousAF. In the one-shot AF mode, the lens driving, as well as the focusadjustment, is stopped once the infocus condition is obtained. In thecontinuous AF mode, the lens is continuously driven according tocalculated defocus amount to follow the subject after the infocuscondition is obtained. When the one-shot AF mode is selected (Fb₈ =0),it is determined at step #4255 whether the infocus flag AFEF is set. Ifthe flag AFEF is reset, or when the continuous AF mode (Fb₈ =1) isselected, the lens is driven at step #4340 after executing steps #4327and #4330. At step #4327, the infocus flag AFEF is reset, and at step#4330, the moving (driving) amount of the lens LN is calculated bymultiplying the defocus amount DF by the conversion coefficient K. Atstep #4340, the lens is moved by the calculated distance LN by the lensdriving circuit LECN.

When the infocus flag AFEF is set at step #4255, a flag AFEIF is checkedat step #4260. AFEIF=1 at this step means that the infocus is firstobtained this time.

If so, preparations are made (#4265-#4280) for judging whether thesubject is moving. First at step #4265, registers for the defocusamounts RDF₂ and RDF₃ are reset, and the calculated defocus amount DF isstored in the other register RDF₁ at step #4270, a counter N is reset to0 at #4275, and the above-mentioned flag AFEIF is reset at step #4280before returning. If AFEIF=0 at step #4260, which means this is not thefirst time since the infocus is obtained (AFEF=1), the process branchesto steps #4285 et seq. At steps #4285-#4295, data in the registers DF,RDF₁ and RDF₂ are shifted (i.e. RDF₃ ←RDF₂, RDF₂ ←RDF₁ and RDF₁ ←DF),and the counter N is incremented by one at step #4300. Then the counterN is checked at step #4305 whether it is 2 or more. If N<2, the processdirectly returns without driving the lens. If N≧2, which means thesubject-distance measurements (focusing) have been made more than threetimes, the average value DF of the three values RDF₁, RDF₂ and RDF₃ inthe registers (i.e. the average value of the defocus amounts of the lastthree measurements) is calculated at step #4310, and the modulus |DF| ischecked at step #4315 whether it is greater than or equal to apredetermined reference value KDF. This step is to determine whether thesubject is moving to or from the camera at a significant speed because,in that case, non-zero defocus amounts should be obtained in the lastthree measurements after the infocus is obtained. If |DF|<KDF, thesubject is assumed still and the follow-flag is reset at step #4310. Thefollow-flag is used in the viewfinder displaying DISP_(II). If |DF|≧KDF,the subject is assumed moving, and the follow-flag is set at step #4325.Then the right focus flag AFEF is reset at step #4327 because thesubject is already out of focus, the lens moving amount LN is calculatedby DF×K, and the lens is driven according to the calculated amount LN(#4330, #4340).

The viewfinder display DISP_(II) relating to the focusing operations isnow explained referring to FIG. 38. When the infocus flag is set, an LEDglows green. When the focusing is impossible (LCONF=1), the LED 101glows red. Otherwise, the LED 101 is turned OFF. The FIG. 102 shows thefocusing mode: when the internal box 102a is displayed, the single-spotAf is selected; when the corners 102b are displayed, the multi-spot AFis selected. The symbol 103 is displayed when the continuous AF mode orthe subject-following mode is selected. At the extreme right portion104, "AF" is displayed in the AF mode (AFNF=0), and otherwise "M" isdisplayed. This viewfinder display ceases when the AF switch S₁ isturned OFF.

Reverting to FIG. 6(a) again, the micro-computer μC controls changing ofvarious data by operations of various key switches (#440).

This is described based on FIG. 12. First, the state of each key switchis detected, and is stored in a memory (#900). Next, judgment is made onwhether or not the flag SETF showing the card setting mode is set(#905). When the flag SETF is set, processing proceeds to step #945.When the flag SETF is not set, processing proceeds to step #910, and themicro-computer μC judges whether or not the exposure mode changingswitch S_(EM) is ON. When the switch S_(EM) is ON, processing proceedsto the subroutine for this exposure mode change (#915), and returns (asdetailed later). When the above-mentioned switch S_(EM) is not ON,processing proceeds to step #920, and the micro-computer μC judgeswhether or not the function changing switch S_(FUN) is ON. When thisswitch S_(FUN) is ON, processing proceeds to the subroutine for thisfunction change (#925), and returns.

FIG. 13 and FIG. 14 respectively show the above-mentioned twosubroutines, step #915 and step #925. First, in the case of the exposuremode change (step #915), the mode changes in a sequence of P→A→S→M→P(return) cyclically every time the up switch Sup is turned ON, andchanges in reverse P←A←S←M←P cyclically every time the down switch Sdnis turned ON. The change is made responding to the exposure mode set bythe IC card CD, and the mode not selected by the IC card CD is skipped.

This routine is explained with reference to FIG. 13. In step #1000, themicro-computer μC judges whether or not the up switch Sup is ON, andwhen it is not ON, processing proceeds to step #1055. When it is ON,processing proceeds to step #1005, and the bits Fb₀ and Fb₁ of thefunction data Fbn of the RAM are checked, and judgment is made onwhether or not P mode is set at present as the controlled exposure mode.When it is set, processing proceeds to step #1010, whether or not A modehas been selected by the IC card is judged through MSb₆ to Msb₈ of theE² PROM (Table 4). If A mode is selected, the exposure mode is changedfrom P to A, and the function data Fb₀ and Fb₁ are changed from (0, 0)to (0, 1) in step #1015, and the processing returns. In theabove-mentioned step #1010, when it is judged that A mode is notselected by the IC card, processing proceeds to step #1025, when it isjudged whether or not S mode is selected. When S mode is not selected,processing further proceeds to step #1040, where it is judged whether ornot M mode is selected. Thus, any mode selected by the card is searchedfor in sequence. Then, if any selected mode exists, the mode is set.When any of A, S and M modes is not selected, P mode is automaticallyselected (#1050).

Likewise, when A mode is set as the controlled exposure mode (Fb₀, Fb₁=0, 1), it is judged whether or not S mode is selected by the IC card,and when it is not selected further, it is judged whether or not M modeis selected. Thus the exposure mode is changed to the selected mode, andthe bits Fb₀ and Fb₁ are changed accordingly (#1020 to #1030).

When S mode is set as the controlled exposure mode (Fb₀, Fb₁ =1, 1), itis judged whether or not M mode is selected by the IC card. When M modeis selected, M mode is set, and when not, P mode is set (#1035-#1045).When S mode is not set as the exposure mode in step #1035 (i.e. when theM mode is set), next P mode is set (#1050). This is because P mode isselected without fail in this embodiment. When the down switch Sdn is ONin step #1055, process is performed like the above-described up switchSup except that the changing direction of the exposure mode differs, andtherefore its description is omitted.

When both of the switches Sup and Sdn are OFF, processing returnswithout performing anything.

Next, description is made on the process when the function changingswitch S_(FUN) is ON referring to FIG. 14(a). The micro-computer μCdetects by bits MSb₀ -MSb₃ of the E² PROM whether at least one functionhas been selected among the four functions, namely, highlight/shadow(H/S), exposure adjustment (+/-), single-frame-/continuous-advancing(S/C) and single-spot AF/multi-spot AF (S/A). When none of these bits isset, it is assumed that no mode selection has been made, and processingreturns (#1200). When at least one bit is set, it is assumed that atleast one function has been selected, and processing proceeds to theflow of steps #1205 et seq., where data is changed. The micro-computerμC judges whether or not the switch S_(SE) selecting thefunction-to-be-changed is ON. When it is ON, search of thefunction-to-be-changed proceeds in a sequence of H/S→+/-→S/C→S/A→H/S(return) cyclically, and skips the function which is not selected by theIC card. In step #1210, when the function-to-be-changed shows H/S (CDb₀,CDb₁, CDb₂ of RAM data as shown in Table 5=0, 0, 0), whether or not the+/- function is selected by the IC card is judged based on the bit MSb₁of the E² PROM. When the +/- function is selected, the data change modeof the +/- function is set, and data CDb₀, CDb₁, CDb₂ =0, 0, 1 is set(#1220), and then processing returns. When the +/- function is notselected, processing proceeds to step #1227, where it is judged whetheror not the S/C function is selected based on MSb₂. When this function isnot selected either (MSb₂ =0), processing proceeds to step #1240, wherewhether or not the A/S function is selected is judged based on MSb₃.When this is not selected either (MSb₃ =0), processing further proceedsto step #1250, where whether or not the H/S function is selected isjudged (MSb₀). Since, in the embodiment, at least the H/S function isselected, CDb₀, CDb₁, CDb₂ =0, 0, 0 is set to change the mode in the H/Sfunction. When the S/C function and the A/S function are selected, CDb₀to CDb₂ are set accordingly to change their modes. Likewise, judgment ismade on whether or not the function following the currently set one tobe mode-changed (e.g., if currently H/S then +/-; if currently +/-, thenS/C; if currently S/C, then S/A; and if currently S/A, then H/S) hasbeen selected by the card. If it is selected, the function is set as thefunction to be mode-changed, and when it is not selected, the functionselected by the IC card is searched for in a sequence ofH/S→+/-→S/C→S/A→H/S . . . , and the selected function is assumed to bethe function to be mode-changed, and data CDb₀ to CDb₂ are setaccordingly, and the processing returns.

As is understood from the above, the function that is not selected bythe card is skipped as to the change of the mode. For example, when twofunctions, +/- and S/C, are selected, the flow goes to step #1225 whenthe function-changing switch S_(FUN) is depressed. Then the processingproceeds to step #1227, and S/C becomes the function to be mode-changed.This means that the triangle cursor moves from +/- to S/C on thedisplay. Subsequently, when the function-changing switch S_(FUN) isdepressed again, the flow goes to step #1235, and then proceedssequentially to step #1215 through the step #1240 and #1250, and the +/-function becomes the function to be mode-changed, and the cursor on thedisplay moves to +/-. In this case, since H/S and A/S are not selected,they are virtually skipped.

In step #1205, when the switch S_(SE) is not ON, processing proceeds tostep #1265 where it is judged whether or not the up switch Sup is ON.When it is ON, the function to be mode-changed is determined based ondata CDb₀ to CDb₂. If it is the H/S function, current mode in thefunction is detected based on data Fb₆ and Fb₇, and data Fb₆ and Fb₇ arechanged to change to the next mode (as H→S→no-H/S→H in a cyclic order)(#1270, #1275), and the processing returns.

If the function is +/-, 0.5 is added to a quantity of exposureadjustment ΔEv in step #1285, and the processing proceeds to asubroutine for judging its magnitude. FIG. 14(b) shows this subroutine.In FIG. 14(b), if the quantity of adjustment ΔEv is positive, data [Fb₄,Fb₅ =0, 1] is set as a positive direction adjustment, and if it is anegative direction adjustment, data [Fb₄, Fb₅ =1, 0] is set, and furtherif the adjustment is zero, data [Fb₄, Fb₅ =0, 0] is set, and theprocessing returns (#1350-#1370).

Reverting to FIG. 14(a), if the S/C function is selected, whether or notthe present mode is one-shot(S) or continuous-shot (C) is judged basedon data Fb₃, and the data is changed so that the mode changes to theother mode (#1295), and the processing returns. When the function is notany of the above-mentioned three (H/S, +/-, and S/C), that is, whencurrently A/S, it is judged through data Fb₂ whether the present mode isthe single-spot AF (S) or multi-spot AF (A), and the data Fb₂ is changedso that the mode changes to the other mode (#1300), and the processingreturns.

When the up switch Sup is not ON in step #1265, processing proceeds tostep #1305, where it is judged whether or not the down switch Sdn is ON.When it is not ON, processing returns. When it is ON, the flow is likethe flow when the above-described up switch Sup is ON except that, inH/S, mode is changed reversely (←H←S←no-H/S←), and except that, in +/-,0.5 Ev is subtracted from the quantity of exposure correction ΔEv(#1310-#1340). Accordingly its description is omitted.

Reverting to FIG. 12, when both the exposure mode changing switch S_(EM)and the function-changing switch S_(FUN) are OFF, processing proceeds tostep #927 and executes a subroutine of changing the aperture value Avand the shutter speed Tv by the up switch Sup and the down switch Sdn.

FIGS. 21(a) and 21(b) show this subroutine. In this subroutine, first,the micro-computer μC judges whether or not the up switch Sup is ON instep #1800, and when it is not ON, processing proceeds to step #1805,where it is judged whether or not the down switch Sdn is ON. When it isnot ON, processing returns. When the up switch Sup is ON, processingproceeds from step #1800 to step #1810, where it is judged whether ornot M mode is set. When M mode is set (Fb₀, Fb₁ =1, 0), it is determinedat step #1811 whether it is currently M₁ mode based on the bit MSb₂₈ ofthe E² PROM. If currently M₁ mode (MSb₂₈ =0), next step #1821 determineswhether the aperture changing switch S_(AV) is ON. If the switch S_(AV)is ON (IP₁₃ ="L"), the aperture is changed at steps #1830 et seq. Themicro-computer μC of the present embodiment can change the aperture orthe shutter speed by 1/2 Ev stops, but the photographer can select 1/2Ev-stops or 1 Ev-stops. Thus, at step #1823, the bit MSb₂₉ is checked todetermine either stop mode. When 1/2 Ev-stop mode is selected (MSb₂₉=1), current shutter speed Tv is changed by adding 0.5 at step #1850,followed by step #1855. When 1 Ev-stop mode is selected (MSb₂₉ =0),current shutter speed is determined at step #1824 to see whether it isat a half-stop position, i.e. at (n+1/2) Ev (n: natural number) [e.g.Tv=6.5 or 1/90 sec.]. If so, current shutter speed Tv is increased by0.5 at step #1825 [e.g. Tv=6.5→Tv=7, or 1/90 sec→1/120 sec.] to roundthe Ev number, and a further 1 Ev is added to the shutter speed Tv atstep #1826, followed by step #1855. At step #1855, the changed shutterspeed Tv is checked to see whether it exceeds a predetermined maximumvalue Tvmax. If so, the shutter speed Tv is set at Tvmax at step #1860.Then the process returns.

If the aperture changing switch S_(AV) is ON at step #1821, the aperturevalue Av is increased by 0.5 at step #1830. When the changed aperturevalue Av exceeds the maximum value Avmax at step #1835 set by the lens,Av is set at Avmax at step #1840. Then it is determined at step #1845whether current mode is P mode. If so, process goes to step #1879 ofFIG. 21(b), and otherwise returns.

If M₁ mode is not selected at step #1811 (MSb₂₈ =1), it is determined atstep #1822 whether the aperture changing switch S_(AV) is ON. If ON,steps #1823 et seq. are executed to change the shutter speed, butotherwise steps #1830 et seq. are executed to change the aperture value.

When M mode is not set in step #1810, processing proceeds to the flow ofstep #1815 and step #1820, where it is judged whether or not P mode or Amode is set. If the mode is either P mode or A mode (Fb₀, Fb₁ =0, 0 or0, 1), processing proceeds to step #1830, where the micro-computer μCincreases the aperture value Av. However, if the mode is neither ofthem, that is, S mode (Fb₀, Fb₁ =1, 1), processing proceeds to step#1823, where the micro-computer μC increases the shutter speed Tv.

When the down switch Sdn is ON in step #1805, processing proceeds to theflow of FIG. 21(b). First in this routine, the micro-computer μC judgeswhether or not M mode is set at step #1865. When M mode is set (Fb₀, Fb₁=1, 0), further it is determined at step #1876 whether current mode isM₁ mode. If so (MSb₂₈ =0), the aperture changing switch S_(AV) ischecked at step #1877 to see whether it is ON. If ON, steps #1885 etseq. are executed to change the aperture value, and otherwise steps#1879 et seq. are executed to change the shutter speed. At step #1879,it is determined whether the half-Ev (1/2 Ev) stop mode is selected. Ifso (MSb₂₉ =1), 0.5 Ev is subtracted from the current shutter speed Tv atstep #1905, and it is compared with a predetermined minimum speed Tvminof the camera at step #1907. If Tv<Tvmin, Tv is set at Tvmin. Then theprocess returns. If the 1 Ev stop mode is selected (MSb₂₉ =0), currentshutter speed is determined at step #1880 to see whether it is at ahalf-stop position. If so, 0.5 Ev is added at step #1881, and then 1.0Ev is subtracted at step #1882, followed by the step #1907. If currentmode is determined to be the aperture changing mode (S_(AV) is ON) atstep #1877, the aperture value Av is decreased by 0.5 Ev at step #1885,and compared with the open aperture value Avo of the lens at step #1890.If Av is smaller than Avo, Av is set at Avo at step #1895, followed bystep #1900 where current mode is determined to see whether it is in Pmode. When Av≧Avo at step #1890, step #1895 is skipped. If current modeis determined to be P mode at step #1900, the above-described steps#1823-#1860 of FIG. 21(a) are executed to increase the aperture value,but otherwise returns.

If current mode is not M₁ mode (MSb₂₈ =1) at step #1876, it isdetermined at step #1878 whether the aperture changing switch S_(AV) isON. If ON, shutter speed is changed at steps #1879 et seq., andotherwise steps #1885 et seq. are executed to change the aperture value.

If current mode is not M mode at step #1865, steps #1870 and #1875 areexecuted to determine whether it is P mode or A mode. In either case,the aperture value is decreased at steps #1885 et seq., otherwise (i.e.S mode) the shutter speed is decreased at steps #1879 et seq.

Reverting to FIG. 12, after passing through the step #927, which is asubroutine for changing the aperture value Av and the shutter speed Tvas described above, processing proceeds to step #930. In this step #930,judgment is made on whether or not the normally-opened switch S_(CD)enabling/disabling the function set by the card is ON. When it is ON,processing proceeds to the proper subroutine in step #935.

This subroutine is explained based on FIG. 15. First, in step #1400,whether or not the IC card CD is attached to the camera body is judgedbased on data CKb₀, and when IC card is not attached (CKb₀ =0),processing returns immediately. When a mode setting card is attached,judgment is made on whether or not a flag CDF showing that processinghas passed through this flow once after the switch S_(CD) is operated isset (#1405). When the flag CDF is set, it is assumed that a changebetween enable/disable has been already finished, and processingreturns. When it is not set, processing proceeds to the following step#1410. In step #1410, the micro-computer sets this flag CDF, andsubsequently checks a flag CDFNF showing that the card function isenabled or disabled in step #1415. When it is not set, it is set toenable the card function (#1420), and when it is set, it is reset todisable the card function (#1425), and processing returns. Descriptionabove is about the flow when the card function enable/disable switchS_(CD) is determined ON at step #930 in FIG. 12.

When the card function enable/disable switch S_(CD) is determined OFF instep #930, processing proceeds to step #940 which is detailed in FIG.16. First, in step #1450, whether or not the IC card is attached isjudged, and when no IC card is attached (b₀ =0 in 20H), processingreturns. When the IC card is attached (b₀ =1 in 20H), processingproceeds to step #1455, where the micro-computer μC judges whether ornot the flag CDF showing that processing has passed once through theflow of the above-described step #1405 et seq. in FIG. 15 is set. Whenthis flag CDF is set, the micro-computer μC resets this flag in step#1460 and returns, and when the flag CDF is not set, process returnsintact.

Reverting to FIG. 12, next, the micro-computer μC checks ON or OFF ofthe card data setting switch S_(CDS) in step #945, and according to ONor OFF of the switch S_(CDS) processing passes through step #955 or step#950 respectively and returns. These subroutines are shown in FIG. 17and FIG. 18.

FIG. 17 shows a subroutine for the switch S_(CDS) at ON. At its firststep #1500, the micro-computer μC judges whether or not a mode settingcard is attached. When no card is attached (b₂ =0 in 20H), processingreturns immediately. When a mode setting card is attached (b₂ =1 in20H), judgment is made on whether or not a flag CDSF showing thatprocessing has passed through this flow once is set (#1510), and whenthe flag is not set, it is set (#1515), and when the flag is set,processing skips step #1515 and returns.

Next, description is made for a subroutine for the switch S_(CDS) at OFFreferring to FIG. 18. First, whether or not a mode setting card isattached is judged in step #1550. When no card is attached (b₂ =0 in20H), processing returns. Even when a card is attached (b₂ =1 in 20H),the process returns when the flag CDSF is not set in step #1555. Theflag CDSF shows that the switch S_(CDS) has been operated and the flowof this [S_(CDS) ON] has been executed. If the flag CDSF is set, it isjudged whether or not the flag SETF which indicates the state of theswitch S_(CDS) for determining the entering to data setting is set instep #1560. When the flag SETF is set, it is reset in step #1570, andsubsequently in step #1572, a flag WRTF showing data write to the E²PROM is set. Then, the flag CDSF is reset to release the data settingmode in step #1575. If the flag SETF is not set, this flag SETF is setto enter the data setting mode (#1565), and the flag CDSF is reset(#1575), and processing returns.

After completing the setting control as shown in FIG. 12 as describedabove, the micro-computer μC proceeds from step #440 to step #445 inFIG. 6, where photometric data is inputted into the micro-computer μCfrom the photometric circuit LM, and a spot photometric value used forexposure control is calculated. Here, description is made for thephotometric value in reference to the photometric zones as shown in FIG.11 and the flowchart about photometric data of the micro-computer asshown in FIG. 19. In FIG. 19, first, the micro-computer μC judgeswhether or not the flag AELF showing AE-lock is set in step #1600, andwhen the flag AELF is set, processing returns without performing renewalof the photometric value. When the flag AELF is not set, a terminal CSLMis set to the "H" level, and a command for output of photometric data issent to the photometric circuit LM, and serial communication isperformed (#1605, #1610).

Luminance values Bv₁ to Bv₄ representative of the four photometric zonesLM₁ to LM₄ as shown in FIG. 11 are inputted into the micro-computer μCby this communication. On completing the communication, the terminalCSLM is set to the "L" level (#1615).

Then, in the following step #1620, it is judged whether or notsingle-spot photometry mode is selected, and when it is selected (Fb₁₂=1), the luminance value Bv₂ of the central photometric zone LM₂ is setas the spot value Bvsp (#1660). When the mode is multi-spot (Fb₁₂ =0),processing proceeds from step #1620 to step #1622, and judgment is madeon whether or not the flag AFNF showing non-AF mode is set and whetherthe flag LCONF showing that focusing is impossible is set. When eitherflag is set, processing proceeds to the above-mentioned step #1660,where the small photometric zone LM₂ at the center is adopted for thespot value Bvsp, and processing returns. When neither flag AFNF norLCONF is set, the image magnification β is calculated by β=(focallength)/(subject distance) (#1625). Then, in the next step #1630,judgment is made on whether or not this image magnification β is notless than a predetermined value KB. If the calculated value β is notless than the predetermined value KB, the subject is assumed to be largein the photographing frame, and in step #1640, an average value of theluminance values Bv₁, Bv₂ and Bv₃ of the respective photometric zonesLM₁, LM₂ and LM₃ is adopted as a spot photometric value Bvsp, andprocessing returns.

When the above-mentioned image magnification β is less than thepredetermined value KB, the photometric zone including the focusing spotused for detection of focus condition is adopted as the photometricvalue Bvsp of the main subject. In this embodiment, the focusing spot isdetermined by which of the flags AF1F to AF3F is set. So, if the flagAF1F is set, the luminance value Bv₁ of the photometric zone LM₁ isadopted, and if the flag AF2F is set, the luminance value Bv₂ of thephotometric zone LM₂ is adopted, and if the third island AF₃ isselected, the luminance value Bv₃ of the photometric zone LM₃ is adoptedrespectively as the spot photometric value Bvsp (#1645 -#1665).

Then the flag AFEF is checked at step #1670 whether the right focus isobtained now. If YES (AFEF=1), an AE-lock flag AEFL is set at step #1675to lock AF and AE, and otherwise (AFEF=0) the flag AEFL is reset at step#1680. The process then returns.

After determining the spot photometric value in such a manner, in FIG.6(a), processing proceeds to step #450, and performs the controlrelating to AE-lock. This control is described in reference to aflowchart as shown in FIG. 20. It is noted that there are two modes: inthe first mode, once the AE-locking switch S_(AEL) is depressed,exposure value is locked and the AE lock is released by depressing theAE locking switch S_(AEL) again or by releasing the power-hold(10-second hold mode); and in the second mode, the AE-locked state isheld only during depression of the AE locking switch. These modes areselected by the IC card. In step #1700 of FIG. 20, first, themicro-computer μC judges which of the above-mentioned two modes is setbased on data MSb₅ of the E² PROM, and when it is the first mode (the10-second hold mode), it proceeds to step #1705, and judges whether ornot the AE-locking switch S_(AEL) is ON.

When the switch S_(AEL) is not ON, the micro-computer μC resets a flagAEONF in step #1710 and returns. The flag AEONF shows that the AE-lockswitch has been operated and the flows of step #1705 et seq. have beenexecuted.

When the AE-locking switch S_(AEL) is ON in step #1705, whether or notthe above-mentioned flag AEONF is set is judged in step #1715, and whenit is set, processing returns immediately. When it is not set,processing proceeds to step #1720, and judgment is made on whether ornot the flag AELF showing that AE-lock is effective is set. When theflag AELF is not set, it is assumed that the AE-lock switch operation ismade to effect AE-lock, thus this flag is set (#1730) and processingproceeds to step #1735. When the flag AELF is set, it is assumed thatthe switch operation is made to release the AE-lock state, and the flagAELF is reset (#1725), and processing proceeds to step #1735. In step#1735, the flag AEONF is set. Then processing returns.

In step #1700, when the mode is not the 10-second hold mode, in step#1740, judgment is made on whether or not the AE lock switch S_(AEL) isON, and when it is not ON, the flag AELF is reset (#1755). When it isON, a flag AELF₁ is set (#1745), and the timer T₁ for holding power isreset and started (#1750), and processing returns. Thus, while the AElocking switch S_(AEL) is ON, power is held.

In FIG. 6(a), on completing the control of this AE-lock, themicro-computer μC performs a second-time communication with the card.This data communication is described in reference to FIG. 5(b). In step#325, the micro-computer μC judges whether or not the card is attached,and when it is not attached (CKb₀ =0), processing by the micro-computerreturns without performing data communication. When the card isattached, the terminal CSCD is set to the "H" level (#330), and data isoutputted to the IC card CD (#335) to show that the IC card is the inputside. Then, in step #340, judgment is made on whether or not the IC cardattached to the camera is a mode-setting card. When it is a data settingcard (b₂ =1 in 20H), switch data stored in step #900 in FIG. 12 is setto a register (#344), and serial communication is performed (#348), andswitch information is outputted to the IC card CD. Then, the terminalCSCD is set to the "L" level (#350), and processing returns.

When the card is a program card (b₂ =0 in 20H), exposure control data,flash data and lens data which are required for exposure operation areset (#346), and serial communication is performed (#348), and these dataare outputted to the IC card. Then the terminal CSCD is set to the "L"level (#350). The second-time data communication is thus completed, andprocessing returns.

The data for exposure control include the photometric values B_(VS) andB_(VAN), the film speed Sv and data showing a positive or negative typeof the film. The lens data include the focal length data, the openaperture value Avo, and the maximum aperture value Avmax. The flash datainclude data showing full flashlight emission or auto flashlightemission, data showing whether flashing unit is not attached yet(including power-OFF), guide number GN and data of completion ornon-completion of charging.

In FIG. 6(a), after completing the above-described data communicationII, the micro-computer μC proceeds to step #460, and performs exposurecalculations.

Description is made for the flow of this control according to FIGS.22-26. First, in the step #2000 of FIG. 22, the micro-computer μCdetermines from MSb₃₂ -MSb₃₄ of E² PROM the regular exposure adjustmentvalue Δ Ev₁, and add it to a manually set value ΔEv at step #2201 tomake the exposure adjustment value ΔEv. Then at step #2002, it isdetermined whether or not a lens is attached based on the inputted lensdata. When a lens is not attached, the micro-computer μC adds the filmspeed Sv and the exposure adjustment value ΔEv to the photometric valueB_(VAM) of the photometric zone LM₄ (in place of this, the average valueof the whole may be used), and thereby calculates the shutter speed Tvlike the stopped-down-aperture metering method, and returns (#2005).When a lens is attached, it performs an exposure operation correspondingto each exposure mode (#2010-#2040). Then, description is made forexposure operation of the P mode according to FIGS. 23(a) to 23(c).First, in step #2100 of FIG. 23(a), the micro-computer μC judges that itis the back-light state when the difference between the photometricvalue B_(VAM) of the photometric zone LM₄ and the spot photometric valueB_(VSP) obtained in step #445 is not less than 2 Ev. If the differenceis not less than 2 Ev(#2100), it is judged whether or not the flashapparatus has completed preparation for light emission (the maincondenser is fully charged) in step #2105. When preparation of lightemission is completed, a terminal FLOK is set to the "H" level (#2110)to make flashlight photographing possible, and a control exposure valueEv is calculated as Ev=B_(VAM) +Avo+Sv-1+Δ Ev (#2115). Here, 1 issubtracted because the background level is raised by 1 Ev to pretend thecounter back-light. The main subject will be illuminated adequately by aflashlight from the flash apparatus. Then, processing proceeds to asubroutine of a program I (#2120) for determining the aperture value Avand the shutter speed Tv, and returns. This subroutine is explainedaccording to FIG. 23(b). A control value Tvc of the shutter speed is setto a synchronizing speed of Tv=7 (1/125 sec.) in step #2200, and theaperture value Av is calculated by subtracting 7 (shutter speed) fromthe exposure value Ev (#2205). And then whether or not this aperturevalue is larger than 7 (F=11) is judged in step #2210, and when thisvalue Av is larger, the control aperture value Avc is restricted to 7,and processing returns (#2215). When the aperture value Av is 7 or less,it is judged whether or not the calculated aperture value Av is smallerthan the open aperture value Avo (#2220). When the calculated value Avis smaller, the open aperture value Avo is set as the control aperturevalue Avc (#2225). When the calculated value Av is not smaller, thecalculated value Av is set as the control aperture value Avc (#2230).After each of steps #2215, #2225 and #2230, processing returns.

Reverting to FIG. 23(a), in step #2105, when the preparation of lightemission of the flash apparatus FL is not completed, the terminal FLOKis set to the "L" level (#2125). Then, in order to achieve a properexposure of the main subject, the control exposure value Ev iscalculated by Ev=Bvsp+Avo+Sv+ΔEv (#2130), and processing proceeds to asubroutine of a program II for determining the aperture value Av and theshutter speed Tv, and returns.

This subroutine is shown in FIG. 23(c). First, in step #2250 of FIG.23(c), the aperture value Av is calculated by Av=5/8 Ev-25/8, andjudgment is made on whether or not this aperture value Av is larger thanthe maximum aperture value Avmax of the lens (#2255). When the value Avis larger, the maximum aperture value Avmax is set as the controlaperture value Avc (#2260), and processing proceeds to step #2280. Whenthe aperture value Av is not larger than the maximum aperture valueAvmax in step #2255, judgment is made on whether or not the aperturevalue Av is smaller than the open aperture value Avo (#2265), and whenthe value Av is smaller, the open aperture value Avo is set as thecontrol aperture value Avc (#2270), and when the value Av is notsmaller, the aperture value Av is set as the control aperture value Avc(#2275), and processing proceeds to step #2280, respectively.

In step #2280, the shutter speed Tv is calculated by subtracting thecontrol aperture value Avc from the exposure value Ev, and in the nextstep #2285, judgment is made on whether or not this value Tv is largerthan a highest shutter speed Tvmax. When the value Tv is larger, thecontrol shutter speed Tvc is restricted to Tvmax (#2290), and when thevalue Tv is not larger, the shutter speed Tv is set as the controlshutter speed, (#2295), and processing returns, respectively.

Reverting to FIG. 23(a), in step #2100, when the difference B_(VAM)-Bvsp is less than 2, it is assumed not to be the back-light state, andprocessing proceeds to step #2145, where the exposure value Ev iscalculated from the average photometric value (Bv₁ +Bv₂ +Bv₃ +Bv₄)/4 ofthe photometric zones LM₁ -LM₄, and whether or not the flash apparatushas completed preparation for light emission is judged (#2150).

When it has completed preparation for light emission, processingproceeds to step #2155, and judgment is made on whether or not the modeis the auto flashlight photographing mode in which the systemautomatically judges whether or not flashlight photographing should beperformed. When it is the auto mode, the aperture value Av and theshutter speed Tv are determined by the above-mentioned program II(#2160), and then judgment is made on whether or not this shutter speedTv is less than the blur-warning speed (Tv=6, 1/60 sec.) (#2165). Whenthe speed Tv is less (slower) than the blur-warning speed, processingproceeds to step #2170 to perform flashlight photographing. When themode is not the auto mode in step #2155, processing proceeds also tostep #2170 to perform full light emission. Then the aperture value Avand the shutter speed Tv at flashlight photographing are determined bythe program I, and subsequently the terminal FLOK is set to the "H"level (#2175) to make flashlight photographing possible.

However, when the preparation for light emission is not completed,processing proceeds from step #2150 to step #2180 to performphotographing by natural light, and the aperture value Av and theshutter speed Tv are determined by the program II, and subsequently theterminal FLOK is set to the "L" level (#2185), and processing returns.Also, in step #2165, when the shutter speed Tv is 7 or more (higher thanthe tuning speed), process also proceeds to step #2185, and returns.

Next, description is made for a flowchart of determining the aperturevalue Av and the shutter speed Tv in the A mode according to FIG. 24.First, judgment is made on whether or not the flash apparatus hascompleted preparation for light emission, and if the preparation iscompleted, the control shutter speed Tvc is set to 7 (1/125 sec.), theterminal FLOK is set to the "H" level, and the set aperture value Av isadopted as the control aperture value Avc, and process returns(#2300-#2310 and #2345). When preparation for light emission is notcompleted, the exposure value Ev is calculated as shown in FIG. 24 (step#2315). The value obtained by subtracting the set aperture value Av fromthis exposure value Ev is adopted as the shutter speed Tv (#2320). Then,in the next step #2325, judgment is made on whether or not this shutterspeed Tv is larger than the maximum controllable speed Tvmax. When thespeed Tv is higher, the maximum shutter speed Tvmax is set as thecontrol shutter speed Tvc, and when it is not higher, the calculatedshutter speed Tv is set as the control shutter speed Tvc (#2325-#2335),and processing proceeds to step #2340. In step #2340, the terminal FLOKis set to the "L" level, and in the following step #2345, the setaperture value Av is set as the control aperture value Avc.

Next, description is made on control in the S mode based on FIG. 25.First, in step #2400, the exposure value Ev is evaluated from theaverage photometric value and the like, and in step #2405, judgment ismade on whether or not preparation for light emission is completed, andwhen the preparation is completed, the terminal FLOK is set to the "H"level (#2410).

Next, in step #2415, whether or not the shutter speed Tv is 7 or less isjudged, and if it is 7 or less, the set shutter speed Tv is set as thecontrol shutter speed Tvc (#2420), and if it exceeds 7, the tuning speed7 is set as the control shutter speed Tvc (#2425), and processingproceeds to step #2430, respectively.

In step #2430, the aperture value Av is calculated by subtracting thecontrol shutter speed Tvc from the calculated exposure value Ev, andjudgment is made on whether or not this aperture value Av is smallerthan the open aperture value Avo (#2435). When the value Av is smaller,the open aperture value Avo is set as the control aperture value Avc(#2440), and processing returns. On the other hand, when the aperturevalue Av is not smaller than the open aperture value Avo, whether or notit is larger than the maximum aperture value Avmax is judged (#2445),and when it is larger, the maximum aperture value Avmax is set as thecontrol aperture value Avc (#2450), and when it is not larger, thecalculated aperture value Av is set as the control aperture value Avc,and processing returns.

In step #2405, when preparation for light emission is not completed, theset shutter speed Tv is set as the control shutter speed Tvc (#2460),and the terminal FLOK is set to the "L" level (#2465), and processingproceeds to step #2430.

Next, when the mode is the M mode (FIG. 26), whether or not preparationfor light emission is completed is judged in step #2500. When it is notcompleted, the terminal LFOK is set to the "L" level, and when it iscompleted, the terminal FLOK is set to the "H" level, and processingproceeds to step #2515 respectively. In this step #2515, the aperturevalue Av set in advance is set as the control aperture value Avc, and inthe following step #2520, the shutter speed Tv is set as the controlshutter speed Tvc, and processing returns.

Reverting to FIG. 6(a), after completing exposure operation (#460), themicro-computer μC performs a third-time data communication with the ICcard CD (#465). A flowchart of this data communication is explainedbased on FIG. 5(c). First, the terminal CSCD is set to the "H" level(#355), and the micro-computer μC performs serial communication with theIC card CD to inform the IC card that the IC card is the output side(#360). Here, it waits for a time (#365), and inputs data from the ICcard CD by serial communication (#370).

After completing this data communication, it sets the terminal CSCD tothe "L" level, and returns.

In this flow, the data sent from the mode setting card differs from thedata sent from the program card. In the case of the mode setting card,the data include mode-setting data, and display-controlling datadetermining whether or not display is to be made. The data include(Table 7), 1 the control shutter speed C·Tvc, 2 the control aperturevalue C·Avc, 3 with/without flashlight emission, 4 full/non-fullemission of flashlight and 5 control/non-control by the card.

In FIG. 6(a), after completing this card data communication III, themicro-computer μC executes the subroutine of the card control in step#470. Based on the inputted data, this subroutine determines whether ornot control of the camera by the IC card (in this case, the programcard) is to be performed, and, if to be performed, operation of thecamera in performing the control. This is shown in FIG. 27. First, instep #2602, the micro-computer μC judges whether or not a card functionis selected, and when a card function is selected (CDFNF=1), processingproceeds to step #2605. On the other hand, when no card function isselected (CDFNF=0), function bits Fb₉ and Fb₁₀ are reset to 0respectively in step #2677, and processing returns. When a card functionis selected, next, judgment is made on whether or not a program card isattached (#2605). When a program card is attached (b₂ =0 in 20H),judgment is made on whether or not the camera is controlled by the ICcard based on the data inputted from the IC card CD (#2610). When thecard is not a program card (b₂ =1 in 20H), or when the camera is not tobe controlled by the IC card, processing proceeds to step #2677.

When it is judged that the camera is controlled by the IC card, thecontrol aperture value Avc, the control shutter speed Tvc, full/non-fulllight emission, with/without flashlight emission are determinedrespectively based on the data inputted from the IC card (#2615-#2645).Subsequently, whether or not the mode is of flashlight emission isjudged based on the inputted data (#2650), and when the mode is not offlashlight emission, the terminal FLOK is set to the "L" level (#2685),and processing returns. When the mode is of flashlight emission, theterminal FLOK is set to the "H" level (#2655), and whether or not themode is of full light emission is judged (#2660). When the mode is offull light emission, a terminal Full is set to the "H" level in step#2665, and processing returns. When the mode is not of full lightemission, the terminal Full is set to the "L" level (#2670), andprocessing returns.

After completing the above-described subroutine (#470) in FIG. 6(a),processing proceeds to a display control (#472).

The data sent from the micro-computer μC to the display control circuitDISPC are listed in Table 9. The shutter speed and the aperture valuedata are adopted from the set value or calculated value. Various modedisplay data are derived from the data of the current modes. Data forthe AE-mode display is made from the data of currently selected mode(b₀, b₁), and from the data read out of the E² PROM (b₂ -b₄). Bits b₂-b₄ correspond to the changing mode II. Data for the display relating tothe card and the data-change is made according to the respective currentmode. The bit b₇ is set (b₇ =1) when the multi/single-spot display flagis set, and is used to make the multi-spot mode or single-spot modedisplay in the camera body display panel (DISP_(I)) when either mode ispreferentially selected (e.g. single-spot or multi-spot mode selected bythe program card, or single-spot AF mode selected by the lens switchS_(Q)) and mode change between them is not allowed.

The frame number data (06H), and the film present/absent-indicating data(07H) are made according to the current status. Display data for modesrelating to IC card are made as: "b₀ " in (I) (08H) is set according tothe card attached; (II) and (III) are set either according to E² PROM(when data is not set) or according to data of change-mode sent from theIC card (when data is set). The display control is performed accordingto the predetermined sequence of the camera, and the display controlcircuit DISPC determines which item to display according to this displaydata. If the display DISP_(II) is required, the corresponding data isset. The display sequence is explained referring to FIG. 28.

First, in step #2700, the micro-computer μC judges whether or not theflag CDFNF is set. The flag shows whether or not the card function isactuated. When the flag is set, in next step #2710, the micro-computerjudges whether or not the flag CDIF showing that processing has passedonce through the following steps #2710-#2720 is set. When the flag CDIFis not set, this is set in step #2715, and a flag DISPIF is also set instep #2720, and processing proceeds to step #2725. The flag DISPIF isprepared for performing display of the function added by the card for apredetermined time when the state that the card function is not actuatedis changed to the actuated state. When the card function is not actuated(CDFNF=0), the flag CDIF is reset in step #2705, and processing proceedsto step #2725. When this flag CDIF is set, processing proceeds from step#2710 to step #2725 without performing anything.

In step #2725, whether or not the above-mentioned flag DISPIF is set isjudged, and when it is set, whether or not the card is a program card isjudged in step #2727. In the case of program card, data for a display"PRO" (program card) and data for a display "CARD" (the card isfunctioning) are prepared in step #2728. The display in this case isshown in FIG. 35(a).

Bits b₅, b₆ at address 05H of the display register (RAM) is set as "1,0" and b₁ -b₄ as "0, 0, 0, 0". The display control circuit DISPCdisplays as in FIG. 35(a) based on this data.

When the card is not a program card, i.e. when the card is a modesetting card or when no card is attached, the function given by the cardwhich has been set in the camera is displayed as in FIGS. 34(a)-(e) bysetting b₁ -b₄ =0 and b₅, b₆ =1, 1 at OAH. Display data and display arechanged responding to the set data.

When the flag DISPIF is not set in step #2725, it is judged whether ornot display control by the card is performed in the next step #2730.When display control by the IC card CD is performed, display datacorresponding to the mode setting data inputted into the micro-computerμC from the IC card is prepared (#2735) by setting b₅, b₆ =0, b₁ -b₄ =0at OAH.

When a card display control signal from the IC card is not inputted(described later) in step #2730, processing proceeds to step #2736,where the micro-computer judges whether or not the write flag WRTFshowing a load to the E² PROM is set. When the write flag WRTF is set,i.e., when the mode of data setting by the card is completed, processingproceeds to a subroutine of mode setting (#2737), and further proceedsto step #2740 where the data is made as b₅, b₆ =0, 1 and b₁ -b₄ =0 atOAH of the display register to make the normal display as shown in FIG.2(u). When the card function is not activated (CDFNF=0), the data ismade as b₀ =0 at OAH to cease the display of the symbol "CARD" display.If the card function is activated, the display data is made as b₀ =1 todisplay "CARD".

At steps #2728, #2729, #2735 and #2740, the display is made also in theviewfinder display DISP_(II). The bits b₀ -b₅ at address OCH are setrespectively according to right focus flag AFEF, focusing-impossibleflag LCONF, subject-following mode flag (follow-flag), continuous-AFmode flag bit Fb₈, multi-/single-spot focusing flag bit Fb₂, and S₁ON/OFF flag S10NF. The display control circuit DISPC turns off theviewfinder display regardless of the data b₀ -b₄ when the switch S₁ isOFF.

After any of steps #2728, #2729, #2735 and #2740, the process proceedsto step #2745 where the terminal CSDISP is set "H" level. A serialcommunication from the camera to DISPC is performed (#2750), and theterminal CSDISP is set "L" level (#2755).

Next, in step #2760, judgement is made on whether or not the flag DISPIFis set, and when the flag is set, processing waits for 2.5 second(#2765) during which display is performed.

In the next step #2770, the flag DISPIF is reset, and processingproceeds to step #2780. When the flag DISPIF is not set in theabove-mentioned step #2760, processing skips steps #2765 and #2770, andproceeds to step #2780. In step #2780 it is judged whether or not thecontrol shutter speed Tvc is less than 6 (1/60 sec.). If it is less than6, judgment is made on whether or not the buzzer-warning mode isselected (#2785). If this mode is selected (MSb₉ -MSb₁₂ =OH, 2H, 4H, 6H,8H, AH, CH, EH), pulses of a predetermined frequency are outputted for acertain time from a terminal OBZ to perform a warning by a buzzer BZ(#2790), and processing proceeds to step #2792.

When the control shutter speed Tvc is 6 or more or in the case of thenon-buzzer-warning mode (MSb₉ -MSb₁₂ =1H, 3H, 5H, 7H, 9H, BH, DH, FH),processing proceeds to step #2792 without performing a buzzer warning.

In step #2792, a flag WRTF is checked. When the flag WRTF is set, themode-setting data (b₁ -b₄ at 22H; b₀ -b₂ and b₄ -b₇ at 23H, b₀ -b₆ at24H, and b₀ -b₂ at 26H) is copied to the corresponding bits of E² PROM(MSb₀ -MSb₃, MSb₅ -MSb₁₂, MSb₂₆ -MSb₃₄) at step #2794. Then the flagWRTF is reset at step #2796, and the process returns. If the flag WRTFis not set in step #2792, process directly returns.

A subroutine (#2737) of the above-mentioned mode setting is shown inFIG. 30. Here, judgment is made on whether or not the mode set atpresent is included in the modes to be selected by the IC card CD anew,and if it is not included, the mode is changed to another selected mode.For example, when A mode has been excluded from selection of theexposure mode by the IC card, it is not proper to perform the displayand control of the A mode, therefore this is prevented.

In the flow of FIG. 30, first the micro-computer μC sets a flag CHGFwhich is reset when the changeable mode for selecting one exposure modeis present (#3200), and judges whether or not any changeable exposuremode has been changed by comparing data MSb₆ -MSb₈ of the E² PROM withdata b₀ -b₂ at 23H inputted from the IC card CD (#3203). When theydiffer (that is, when that exposure mode has been changed), data Fb₀,Fb₁ are set to 0, 0 (#3205) to forcedly change the exposure mode to Pmode, and processing proceeds to step #3210.

Subsequently, in step #3210, whether or not the H/S mode exists isjudged, and when it exists (b₁ =1 at 22H), the above-mentioned flag CHGFis reset (#3220), and changing data CDb₀ -CDb₂ are set to (0, 0, 0) asH/S change mode in step #3225, and processing proceeds to step #3230.

When it is not in the H/S mode (b₁ =0 at 22H), data Fb₆ and Fb₇ are setto 0, 0 (no-H/S change), and processing proceeds to step #3230.

In step #3230, whether or not the +/- mode exists is judged, and when itexists (b₂ =1 at 22H), whether or not the flag CHGF is set is judged instep #3245, and when the flag is set, the flag is reset (#3250), and thechanging data CDb₀ -CDb₁ are set to (0, 0, 1) showing the +/- changemode in step #3255, and processing proceeds to step #3260.

When the flag CHGF is not set in step #3245, processing skips steps#3250 and #3255 and proceeds directly to step #3260.

In step #3230, when it is not in the +/- mode (b₂ =0 at 22H), thefunction data Fb₄ and Fb₅ are set to 0, 0 regarding as no adjusting(#3235), and a quantity of adjustment of exposure is set to zero (ΔE=0)in step #3240, and processing proceeds to step #3260.

In step #3260, whether or not the S/C mode exists is judged, and when itexists (b₃ =1 at 22H), whether or not the flag CHGF is set is judged instep #3270. When the flag is set, this flag is reset (#3275), andfurther regarding as S/C change, changing data CDb₀ -CDb₂ are set to 0,1, 0 in step #3280, and processing proceeds to the following step #3285.

When the flag CHGF is not set, processing skips steps #3275 and #3280and proceeds directly to step #3285. In step #3260, when the S/C modedoes not exist (b₃ =0 at 22H), the function data Fb₃ is set to 0 in step#3265 to set the single-frame advancing mode, and processing proceeds tostep #3285. In step #3285, it is judged whether or not the S/A modeexists, and when it exists (b₄ =1 at 22H), it is judged whether or notthe flag CHGF is set in step #3295. When the flag CHGF is set, the flagCHGF is reset (#3300), and further in the next step #3305, regarding asS/A change, the changing data CDb₀ -CDb₂ are set to 0, 1, 1, andprocessing returns. When the flag CHGF is not set in the previous step#3295, no changeable mode is assumed to exist, and the changing dataCDb₀ -CDb₂ are set to 1, 0, 1 (#3310), and processing returns.

Also, when the S/A mode does not exist in step #3285 (b₄ =0 at 22H), thefunction data Fb₂ is set to 0 to set the multi-spot AF mode (A mode) instep #3290, and processing returns.

In FIG. 6(a), after completing the above-described display control(#472), the micro-computer μC proceeds to step #473, and judges whetheror not the release switch S₂ is ON, and when the switch is not ON (IP₇="H"), it permits interrupts (#474) and returns. When the switch S₂ isON (IP₇ ="L"), it is judged whether it is currently the self-timer modeby checking the state of the self-mode selection switch S_(SELF) (#475).When the switch S_(SELF) is ON (IP₁₂ ="L"), the processing proceeds tostep #478 where the self-photographing is performed. This subroutine isexplained referring to FIG. 29.

First in this routine, the micro-computer μC stops AF motor at step#4500 (because, if there is no subject in front of the lens in theself-timer mode, the auto-focusing would be adjusted to the background).Then at step #4505, a time data for the self-timer is read out from theE² PROM. The time data is first checked at step #4510 whether it is 2sec. If so (MSb₃₀, MSb₃₁ =0, 0), the process waits 2 seconds at step#4515, and returns to step #490 of FIG. 6(a) where the exposure iscontrolled (#495). If 5 sec. or 10 sec. is selected, the process waitsaccordingly at step #4525 or #4530, and returns to step #490 of FIG.6(a).

If it is not currently self-mode at step #475 (IP₁₂ ="H"), step #480 isexecuted where it is determined whether current mode is manual-focus(focus-lock or manual-focus-adjusting only for detecting theright-focus; MFF=1). If so, process goes to steps #490 and then #495 tocontrol exposure, and otherwise (A mode) goes to step #485.

At step #485, the flag AFEF (showing right focus) is checked, and if itis not set, process returns without the exposure control. If the flagAFEF is set, or if the current mode is not AF mode (i.e. manual mode):all interrupts into this routine is prohibited at step #490; theexposure is controlled at step #495 (which is detailed later); the filmis wound by one frame at step #500 (also detailed later); and therelease switch S₂ is determined ON or OFF at step #505. If the releaseswitch S₂ is ON (IP₇ ="L"), then whether it is continuous-advancing modeis determined at step #510. When it is continuous-advancing mode (Fb₃=1), all interrupts are permitted at step #515, and the process proceedsto the branch S0 (#400). If it is not continuous-advancing mode (Fb₃=0), process returns to step #505 until the release switch S₂ is turnedOFF, at which time all interrupts are permitted at step #520 and processreturns.

Next, a subroutine of exposure control in the above-mentioned step #495is shown in FIG. 31. First, in step #2800, based on the data inputtedfrom the flash apparatus ST, judgment is made on whether or not chargingis completed, and when charging is completed, the terminal CSST is setto the "H" level in step #2805 for a time t₂ to show the exposure mode.Then, as the data for illuminating amount, the film speed Sv and theamount of exposure adjustment ΔEv are calculated, and these data areoutputted to the light adjusting circuit STC after D-A conversion intoanalog data (#2810).

In the next step #2815, aperture control is performed based on thecontrol aperture value Avc, mirror-up control is performed (#2820),control of the shutter speed is performed based on the control shutterspeed Tvc (#2825), the full light emission signal terminal Full is setto the "L" level (#2830), and processing returns.

Here, description is made on operation of the interface circuit forflashlight emission based on FIG. 9(b). At flashlight photographing, theterminal FLOK is set to the "H" level, and on completing a run of thefirst curtain of the shutter, the X-contact is turned ON, and alight-emission-start signal is outputted from an AND circuit AND₂₁ tothe flash apparatus ST, and the flash apparatus ST inputs this signaland starts light emission. When the mode is not the full light emissionmode, the "H" level is outputted to the AND circuit through an inverterIN₂₁, and when a pulse signal showing completion of light adjustmentfrom the light adjusting circuit STC is inputted, an AND circuit AND₂₂outputs this signal to the flash apparatus through an OR circuit OR₂₁.The flash apparatus ST inputs this signal and stops flashlight emission.In the case of the full light emission mode, the "L" level is inputtedto the AND circuit AND₂₂, and the AND circuit AND₂₂ is put in thenon-operating state, and inhibits passage of a light adjust signal, andtherefore, a signal for stopping flashlight emission is not outputted tothe electric flash apparatus ST.

FIGS. 32(a) and (b) show flowcharts of control of one-frame winding-upof the film executed at step #500 in FIG. 6(a). In FIG. 32(a), themicro-computer μC outputs a film wind-up signal to a motor controllingcircuit MD, and resets and starts a timer T₃ (#2850, #2855). This timerT₃ is for detecting that the film is wound up to the final frame and thefilm tenses up. In step #2860, the micro-computer μC judges whether ornot the switch S_(WD) showing that one frame has been wound up is ON.When it is not ON, the micro-computer μC judges whether or not twoseconds has elapsed in this state in step #2865. When elapsed, it stopsthe motor (#2870), and, assuming that the film ends (and it tenses up),performs control for the film-end (#2875), and returns. The subroutinefor this control for film-end is shown in FIG. 32(b). In step #2920,judgment is made on whether or not auto return (the film isautomatically rewound after it tenses up) is selected, and when it hasbeen selected (MSb₉ -MSb₁₂ =0H-3H, 8H-BH) a signal of reverse rotationof the motor is given to the motor controlling circuit MD, andprocessing waits until the film detecting switch S_(FLM) turns ON.Subsequently, when the switch S_(FLM) turns ON judgment is made onwhether or not the film is to be wholly wound into the film cartridge,and if the film is to be wholly wound into the film cartridge (MSb₉-MSb₁₂ of the E² PROM=2H, 3H, 6H, 7H, AH, BH, EH, FH), processing waitsfor one second (#2945), stops motor (#2955), and then returns.

If the whole film is not to be wound into the film cartridge (MSb₉-MSb₁₂ of the E² PROM=0H, 1H, 4H, 5H, 8H, 9H, CH, DH), processing waitsfor 0.2 seconds to leave the leading tag outside, stops the motor, andreturns (#2950).

When the mode is not of auto return (MSb₉ -MSb₁₂ =4H-7H, CH-FH) in step#2920, processing proceeds to step #2925 in which it waits until therewinding switch S_(RW) turns ON, and when it turns ON, processingproceeds to the above-mentioned step #2930.

Reverting to FIG. 32(a), in step #2860, when a one-frame switch S_(WD)turns ON, in step #2880, the motor is stopped. In the next step #2885,judgment is made on whether or not the film counter is in count-up mode.If it is in count-up mode (MSb₉ -MSb₁₂ =0H-7H), the count number N₁ ofexposed film frames is increased by 1 in step #2890, and processingproceeds to step #2900. On the other hand, if it is in count-down mode(MSb₉ -MSb₁₂ =8H-FH), the count number N₁ showing the remaining filmframes is decreased by 1 in step #2895, and processing proceeds to step#2900. In step #2900, this counter number N₁ is written to MSb₁₃ -MSb₁₈of the E² PROM.

Next, when the rear lid close detecting switch S_(RC) or the rewindingswitch S_(RW) is operated, a pulse signal is inputted to a terminalINT₂, and the micro-computer μC executes an interrupt INT₂ as shown inFIG. 33. In the flow in FIG. 33, first, the micro-computer μC inhibitsinterrupts to this flow (#3000), and then in step #3005, detects whetheror not the rewinding switch S_(RW) is ON. When it is ON, themicro-computer μC executes a rewinding routine as shown in FIG. 32(b) toperform a rewinding operation, permits an interrupt (#3010, #3100), andreturns. When the rewinding switch S_(RW) is not ON, the rear lid closedetect switch S_(RC) is assumed to be turned ON, and processing proceedsto step #3015, and judgement is made on whether or not the film exists.When no film exists, i.e. the film detecting switch S_(FLM) is OFF,processing proceeds to step #3100 without performing initial loading. Onthe other hand, when the film exists (the switch S_(FLM) is ON), aterminal CSDX is set to the "H" level, and serial communication isperformed with a film speed reading circuit DX. Thereby film speed dataSv and the number of film frames N are inputted into the micro-computerμC. On completing the communication, the terminal CSDX is set to the "L"level (#3020-#3030). Then, the counter N₁ is set to -2 (#3035).Subsequently the terminal CSDISP is set to the "H" level, and serialcommunication is performed with the display control circuit DISPC(#3045). In the serial communication, only an initial load signal (b₁=1, b₂ -b₆ =0 at 0AH) and the counter data N₁ are outputted from themicro-computer μC. Thus only the frame counter data is displayed. Aftercompleting the serial communication, the terminal CSDISP is set to the"L" level (#3050). The counter number N₁ is displayed using two digitsof seven-segment unit. Next, the micro-computer μC outputs a signalinstructing winding-up of the film to a wind-up control circuit (#3055),and waits until winding-up of one frame ends (#3060). When the one-frameswitch S_(WD) turns ON, the micro-computer μC adds 1 to the counter N₁(#3065), and judges whether or not it is 1 (#3070), and if it is not yet1, returns to step #3040. If it has become 1, processing proceeds tostep #3075, and the motor is stopped, and in step #3080, it is judgedwhether or not the film counter is in count-up mode. If it is incount-up mode, in step #3085, numeral 1 is set as N₁, and if it is notin count-up mode, the number of frames N of the film read in step #3039is set as N₁, and processing proceeds to step #3095. Then, in step#3095, the above-mentioned N₁ and the film speed are written atpredetermined addresses of the E² PROM, and after it is completed, allinterrupts are permitted (#3100), and processing returns.

In the above description, the operation of the micro-computer μC of thecamera side of this embodiment are explained using various flowcharts.Next, description is made on operation of the IC card attached to thiscamera. Here the mode setting-card and the program card are describedindependently. A micro-computer μC₂ incorporating an E² PROM is includedin the IC card CD, respectively. A character C affixed to the head ofthe flag symbol is for discriminating from the flag of the camera side,and the function of this flag is the same as the function of the flagwithout the character C.

Mode-Setting Card

First, description is made on the mode setting card. When the IC card CDis attached to the camera body, power V_(DD) is supplied to the IC cardCD, and as described above, the micro-computer μC of the camera isinterrupted, and the clock signal is sent to the IC card CD, and themicro-computer μC₂ of the IC card is operable.

In the IC card side, by attaching the IC card to the camera body, asignal changing from the "L" level to the "H" level is supplied to aterminal RE, and the micro-computer μC₂ executes a flow as shown in FIG.40(a). In this FIG. 40(a), the micro-computer μC₂ first resets flags andoutput ports (#CD5), transfers data of the E² PROM to the correspondingbits of the RAM (#CD10), and waits an interrupt (#CD15).

When a signal CSBCK showing data communication request is sent from thecamera, the micro-computer μC₂ of the IC card CD executes an interruptINT, which is shown in FIG. 40(b). In step #CD50, the micro-computer μC₂controls the IC card to perform serial communication with the camera,and inputs data from the camera in synchronism with the clock signal SCKsent from the camera, and determines one of the data comminations I, IIand III (#CD55). In the case of the data communication I, first, datashowing the kind of the IC card (mode-setting card or program card) isset (mode-setting card in this case), and the data is outputted insynchronism with the clock signal SCK (#CD60), and an interrupt iswaited (#CD63). In the case of the data communication II, processingproceeds from step #CD70 to step #CD75, and data sent from the camera(key switch data in this case) is inputted in synchronism with the clocksignal SCK. Based on this inputted data, a routine of data setting isexecuted (#CD75), and any interrupt is waited (#CD63).

This routine of data setting is shown in FIG. 40(c). It is judgedwhether or not the card data setting switch S_(CDS) is ON in step#CD100, and it is executed to control [S_(CDS) ON] in step #CD110 orcontrol [S_(CDS) OFF[ in step #CD105 according to ON or OFF of thisswitch S_(CDS). FIGS. 40(e) and 40(f) show flows of the respectivecontrols [S_(CDS) ON] and [S_(CDS) OFF]. These controls are the same asthe controls [S_(CDS) ON] and [S_(CDS) OFF] as shown in FIG. 17 and FIG.18 except that the steps of judging the mode setting card, step #1500and step #1550 do not exist (these are unnecessary in the card side).

Reverting to FIG. 40(c), in step #CD115, whether or not the set flagCSETF is set is judged. When it is not set, processing proceeds to step#CD120, and judgment is made on whether or not a flag CCDSF (set whenprocessing passes through the flow of [S_(CDS) ON] once and does notpass through the flow of [S_(CDS) OFF]) is set.

In this embodiment, processing enters the changing mode in the OFF stateof the card data setting switch S_(CDS).

When the flag CCDSF is set, the display control flag DISPCF is set(#CD125), and when the flag CCDSF is not set, it is reset (#CD130), andprocessing returns.

The data corresponding to set and reset of the display control flagPISPCF are respectively sent to the camera, and the camera judgesaccording to the data at step #2730 of FIG. 28 described before.

Here, routine responsive to the data set I is explained referring toFIG. 40(d). First, at step #CD135, it is judged whether the card switchS_(CD) is ON or OFF, and if ON, current change mode is determined basedon the proper bits (CCKb₀ -CCKb₂), and the mode is changed to the next#CD140. At this time, the above-mentioned bits (CCKb₁₅ -CCKb₁₇) are alsochanged. If the card switch S_(CD) is OFF, the up switch or down switchis checked at steps #CD145 and #CD155. If either is ON, a correspondingsubroutine, data set II (#CD150) or data set III (#CD160), is executed.If neither is operated, it returns.

Data set II subroutine is explained referring to FIG. 40(g). First themicro-computer μC₂ sees which of (I) through (VII) is selected as themode-change function by looking up the bits CCKb₀ -CCKb₂. Then itdetermines current number representing the functions in the change-modefrom the bits CCKb₃ -CCKb₂₂, and changes the number to the next. Forexample, in change-mode I, if current number is "0" (where H/S, exposureadjustment, drive mode S/C, and single-spot AF/multi-spot AF arechangeable), it is changed to "1" (where only single-spot AF/multi-spotAF among the four above is unchangeable). The data set III is verysimilar to the data set II except that the number changing direction isreversed.

Reverting to FIG. 40(b), when it is judged in step #CD80 that the datacommunication is III, serial communication (in this case, the cardoutputs) is performed in step #CD85, and thereby the IC card functiondata CCKb₀ -CCKb₂₃ and a signal DISPCF are given to the camera. Then,whether or not a write flag CWRTF showing the data transporting to theE² PROM is set is judged in step #CD90, and if it is not set, processingproceeds to step #CD63, and waits any interrupt. If the flag CWRTF isset, the function data CCKb₀ -CCKb₂₃ are written to bits at thecorresponding addresses of the E² PROM (#CD92), and the flag CWRTF isreset (#CD95). Then processing proceeds to step #CD63, and waits anyinterrupt.

In the above-mentioned step #CD80, when the data communication is notIII, it is assumed to be a sleep signal, and processing is put in thehalted state.

Program Card

Next, description is made for the case of the program card. In thisembodiment, the program card provides a sport program suitable when ascene of a sport is wanted to be photographed.

When the IC card CD (program card) is attached to the camera, a signalchanging from the "L" level to the "H" level is inputted to a terminalRESET of the micro-computer μC₂ of the card and the micro-computer μC₂executes a flow of RESET as shown in FIG. 41, and resets flags and I/Oports of the micro-computer μC₂ in step Q1 and waits any interrupt (Q2).When a signal CSBCK is inputted from the camera, an interrupt istriggered, and a flow INT as shown in FIG. 42 is executed. Themicro-computer μC₂ of the IC card performs data communication along theclock signal SCK sent from the camera (Q50). The data at this time isfor indicating the kind of communication from the camera to the card.The micro-computer μC₂ of the IC card inputs this data, anddiscriminates the kind of communication (Q51). In the case of the datacommunication I, the micro-computer μC₂ outputs data showing to thecamera the kind of the card (here, the program card) and data showingrespectively that the Af mode is "continuous" and the photometric zoneis "multi-spot" (Q52). Then processing proceeds to step Q56, and waitsan interrupt.

Here, the program card is presupposed for the sport scene, and it istherefore desirable to select the continuous AF mode in which movingsubject is focused all the time, the multi-spot photometric zone modehaving a wide photometric range for the same reason, and thesingle-/multi-spot AF mode is changeable because sometimes thephotographer desires focusing only to the main subject.

In data communication II, necessary data is provided from the camera(steps Q53, Q54), exposure operation is performed (Q55), and aninterrupt is waited (Q56).

Prior to description on an embodiment of a specific flowchart ofexposure operation, summary of control of this card is explained.

The card is presupposed for outdoor sports and athletic meeting

Feature

A moving subject can be photographed at a comparatively bright place ata high shutter speed without blur.

Control

A program line diagram in FIG. 44 shows the control of the card foroutdoor sports and athletic meeting. This control is performed asfollows.

(A) The aperture value Av is calculated by the following equations.

    Av=(3/4)·Ev-23/4 if Ev<21

    Av=(1/2)·Ev-1/2 if Ev≧21

This means that if Ev<21, the aperture is opened a little more toincrease the shutter speed Tv. Accordingly, calculation ofAv=(3/4)·Ev-23/4 is performed.

In the case of Ev≧21, the shutter speed Tv is considered to besufficiently high, and therefore calculation of Av=(1/2)·Ev-1/2 isperformed to smoothly change both of Av and Tv.

Next, a comparison is taken between the open aperture value Avo and Av.When the calculated value is smaller than Avo, the aperture value cannotbe set to that value, therefore being corrected to Avo.

Next, the shutter speed Tv is calculated by the following equations.

    Tv=Ev-Av if Av≧Avo

    Tv=Ev-Avo if Av<Avo

(B) If the film is the negative type, the shutter speed Tv is correctedto increase.

Since the negative film has a wide latitude, the exposure setting isreduced by about 1 Ev from the standard value to get higher shutterspeed.

The reversal type (positive type) film has a narrow latitude, andtherefore no adjustment is made.

There is a relationship between the calculated value in (A) and theadjusted value as show in table below.

    ______________________________________                                        Value of Tv evaluated by (A)                                                                      Adjusted value of Tv                                      ______________________________________                                        Tv ≧ 9       Tv' = Tv                                                  8 ≦ Tv < 9   Tv' = 9                                                   Tv < 8              Tv' = Tv + 1                                              ______________________________________                                    

(C) Others

The above-mentioned controls (A) and (B) are performed when a lenshaving a focal length of 70 mm or more is attached. The first reason isthat in sports photographing, the subject distance is consideredcomparatively large. The second reason is that where the telephotolensis not used, the image magnification of the subject becomes small, andthe blur by moving the lens to follow the small subject hardly occurs.Therefore no such control is substantially required.

In this control, flash apparatus is set OFF, and automatic flashlightemission is not performed. The reason is that this program card purposesphotographing at a comparatively bright place, and the distance from thesubject is considered comparatively long. Therefore a flashlight is noteffective in this case.

On the contrary, if the switch of flash apparatus is turned ON by thephotographer, no such control is performed for obeying thephotographer's will to use the flashlight.

Next, a flowchart of exposure operation of the above-mentioned programcard is shown in FIG. 43. In this FIG. 43, first, in step 1, themicro-computer μC₂ of the program card judges from the inputted datawhether or not a lens is attached. When no lens is attached to thecamera body, lens data such as the open aperture value Avo do not cometo the IC card CD. Accordingly, no exposure calculation can beperformed, and therefore processing proceeds to step ○29 , and exposurecontrol is assigned to the camera. When a lens is attached, processingproceeds to step 2 to find out the focal length of the lens from theinputted data. In the case of the lens having a focal length of shorterthan 70 mm, control of the card is not performed for the above-describedreason, and therefore in this case also, processing jumps to step ○29 ,and assigns the exposure control to the camera. In the case of the lenshaving a focal length of 70 mm or more, in step 3, the state of fullflashlight emission switch is found out from the inputted data. When thefull flashlight emission switch is ON, the card does not perform controlfor the above-described reason, and therefore processing jumps to step○29 .

On the other hand, when the above-mentioned switch is OFF, in the nextstep 4, the exposure value Ev is calculated by adding the luminancevalue Bvs and the film speed Sv of the inputted data. Then, the controlis changed depending on the exposure value Ev. For the above-describedreason, if Ev<21, Av is evaluated by the equation Av=(3/4)·Ev-23/4 instep ○14 . If Ev≧21, Av is evaluated by the equation Av=(1/2)·Ev-1/2 instep 6.

A comparison is taken between Av calculated in step 6 and the maximumaperture value Avmax in the next step 7. If Av≧Avmax, the lens cannot bestopped down any more, and therefore the aperture value Avc for thecamera body control is set as Avmax in step 8.

On the other hand, if Av<Avmax, Avc=Av is set in step 9. After theaperture value Avc has been calculated in such a manner, in step ○10 ,the shutter speed Tv is calculated based on an equation Tv=Ev-Avc.

In the next step ○11 , a comparison is taken between this shutter speedTv and the highest shutter speed Tvmax of the camera. If Tv≧Tvmax,processing proceeds to step ○12 , and the shutter speed Tvc for thecamera body control is set as Tvmax. If Tv<Tvmax, processing proceeds tostep ○13 , and Tvc=Tv is set.

If Ev<21 in the above-mentioned step 5, Av is calculated by the equationshown in step ○14 , and thereafter processing proceeds to step ○15 . Instep ○15 , a comparison is taken between Av calculated in step ○14 andthe open aperture value Avo. Here, if Av>Avo, processing goes to theabove-mentioned step 7 to take a comparison between Av and Avmax. IfAv≦Avo, the aperture of the lens cannot be opened any more, andtherefore, processing proceeds to step ○16 , and the aperture value Avcis set as Avo. Then, in step ○17 , the shutter speed Tv is calculated bythe equation Tv=Ev-Avc.

For the above-described reason, if the film is the negative type,correction of the shutter speed Tv has to be performed, and thereforethe type of the film is determined in step ○18 . As a result, when thefilm is a reversal (positive) type, processing proceeds to step ○22 toprevent very slow shutter speed Tv.

On the other hand, in the case of the negative film, processing proceedsto step ○19 , and judges whether or not the shutter speed Tv is smallerthan 9. If Tv≧9, the control shutter speed Tvc is set as Tv in step ○26. If Tv<9, processing proceeds to step ○20 , and judges whether or notthe shutter speed Tv is 8 or more.

Here, if Tv≧8, Tvc=9 is set (step ○26 ), and if Tv<8, a correction ofTv=Tv+1 is made, and processing proceeds to the next step ○22 . In step○22 , a comparison for limiting the lowest value to Tv=-5 (30 seconds)is taken to prevent shutter speed Tv from becoming extremely slow.

Here, if Tv<-5, Tvc=-5 is set (step ○23 , and if Tv≧-5, Tvc=Tv is set(step ○28 .

For the above-described reason, control of flashlight is not performed,and therefore, in step ○24 , the bit is set to turn OFF the flash. Thenprocessing proceeds to step ○25 , and the values calculated by theprogram card are used for controlling the camera, and processingreturns.

After completing the flow of these exposure operations, processingreturns to the flow of FIG. 42, and waits any interrupt.

When any interrupt is triggered from the camera, and at that time, if itis the data communication III, data are prepared to show: whether or notthe camera is controlled by the data of the operated aperture value CAvcand shutter speed CTvc; whether or not the camera is controlled by thecard; non-forced light emission (Fb₉ =0); inhibit of forced lightemission (Fb₁₀ =0); and reset of the adjustment of flash light CF ΔEv.These data are sent to the camera by serial communication. Except forthis communication, the micro-computer μC₂ of the card stopscommunicating.

Among the above-mentioned overall description of the camera system, somefeatures relating to the present invention are tabulated below.

(1) In FIG. 6(b), when the lens switch S_(Q) is OFF, normal selection offunction and normal change of mode, i.e. the function for enabling themode-change between single-spot AF/multi-spot AF and the mode-changebetween them, can be performed. When the lens switch S_(Q) is ON, theprocess proceeds to step #4005 et seq., where the single-spot AF flag(Fb₂) is set (here the single-spot AF mode is supposed to have beenselected by the IC card), but the selection of the mode-change functionand the multi-spot AF mode are void. Then, when the AF start switch S₁is turned ON, the single-spot AF is actually performed in step #735 ofFIG. 10(a).

(2) When the AF switch S₁ is ON (where an auto-focusing is working), andwhen further the lens switch S_(Q) is operated, the auto-focusing actionstops (the display remains AF) and, (i) in case the right focus is notyet attained, the focusing mode turns to M (manual) mode and aphotometric measurement is performed (without AF-lock), (ii) in case theright focus has been attained, the AE is locked including theconsideration of the image magnification. During the continuous-shot,the photometric value measured before the continuous shot is preservedand not updated.

(3) The AF mode turns to the single-spot mode when the switch S₁ isturned ON, and the single-spot AF display and the single-spot AF actionare maintained while the switch S₁ is kept ON.

(4) When the lens switch S_(Q) is turned ON, the subject-following modedisplay (the Continuous Mode display) continues. When the lens switchS_(Q) is OFF and the subject is being focus-followed, the ContinuousMode display is maintained.

(5) When the lens switch S_(Q) is turned ON to operate the continuousmode action, the AF-lock and AE-lock are released.

(6) During the continuous mode action, the auxiliary light for the AFdoes not operate.

(7) When the lens switch S_(Q) is turned ON in the auxiliary light mode,the continuous mode starts after the auxiliary light is operated.

The scope of the present invention is not limited to the above-describedspecific examples. It is easily understood by those skilled artisans ofthis field that many modifications are possible without departing fromthe spirit of the present invention. For example, the function of thelens switch can be replaced by the IC card. Further, though in the aboveembodiment, the IC card adds or changes various functions of the camerabody, it is possible, of course, to provide a switch on the camera bodyto add or change such functions in place of the IC card.

The following Table 1 through Table 10 show the switches and theirfunctions, and various data which are cited in the above description.

                  TABLE 1                                                         ______________________________________                                        Symbols                                                                       of                                                                            switches                                                                             Switches     Functions                                                 ______________________________________                                        S.sub.RE                                                                             Battery      When battery is attached, turns                                  attachment   OFF and resets the micro-computer                                switch       μC.                                                    S.sub.EM                                                                             Exposure mode                                                                              Changes exposure mode                                            changing     (P, A, M, S) in cooperation with up                              switch       switch Sup or down switch Sdn.                            S.sub.FUN                                                                            Function     changes function in cooperation                                  changing     with up switch Sup or down                                       switch       switch Sdn.                                               S.sub.CD                                                                             Card function                                                                              Enables/disables card function                                   enable/disable                                                                             when card is attached.                                           switch                                                                 S.sub.CDS                                                                            Card data    Sets/resets data setting mode                                    setting switch                                                                             performing mode change or data                                                setting when card is attached.                            S.sub.0                                                                              Photometric  starts photometry, display and                                   switch       the like (except AF).                                     S.sub.1                                                                              AF switch    Starts AF.                                                S.sub.2                                                                              Release switch                                                                             Starts photographing operation.                           S.sub.WD                                                                             One-frame    Turns ON when one frame of film                                  switch       is wound up.                                              S.sub.AEL                                                                            AE locking   Performs AE lock.                                                switch                                                                 S.sub.AF/M                                                                           Focusing mode                                                                              Changes between AF and manual                                    changing     focusing.                                                        switch                                                                 S.sub.SE                                                                             Change data  Selects data to be changed.                                      selecting                                                                     switch                                                                 S.sub.FLM                                                                            Film detecting                                                                             Detects presence or absence of                                   switch       film.                                                     S.sub.RC                                                                             Rear lid close                                                                             Detects close of rear lid.                                       detecting                                                                     switch                                                                 S.sub.RW                                                                             Rewinding    Starts rewinding.                                                switch                                                                 S.sub.CR                                                                             IC card      Turns OFF when IC card is                                        attachment   attached and resets the micro-                                   switch       computer of IC card.                                      X      X contact    Turns ON after run of the first-                                              curtain of shutter and triggars flash.                    Sup    Up switch    In M mode: Up of shutter speed                                                Otherwise: Change of changing-                                                mode, Up function                                         Sdn    Down switch  In M mode: Down of shutter speed                                              Otherwise: Change of changing-                                                mode, Down function                                       S.sub.AV                                                                             Aperture     In M mode, apeture value is                                      changing     changeable used with Sup or Sdn.                                 switch       (shutter speed can be changed by                                              IC card setting)                                          S.sub.SELF                                                                           Self-mode    Used to select self-timer time.                                  switch                                                                 ______________________________________                                    

                  TABLE 2 (a)                                                     ______________________________________                                                        Exposure  Drive mode                                                                              Single-spot/                                     H/S      adjustment                                                                              Single-frame                                                                            multi-spot AF                             Selected                                                                             H: ◯                                                                       In: ◯                                                                       advancing: ◯                                                                Single: ◯                     Number S: X     Out: X    Continuous: X                                                                           Multi: X                                  ______________________________________                                        0      ◯                                                                          ◯                                                                           ◯                                                                           ◯                             1      ◯                                                                          ◯                                                                           ◯                                                                           X                                         2      ◯                                                                          ◯                                                                           X         ◯                             3      ◯                                                                          ◯                                                                           X         X                                         4      ◯                                                                          X         ◯                                                                           ◯                             5      ◯                                                                          X         ◯                                                                           X                                         6      ◯                                                                          X         X         ◯                             7      ◯                                                                          X         X         X                                         8      X        ◯                                                                           ◯                                                                           ◯                             9      X        ◯                                                                           ◯                                                                           X                                         10     X        ◯                                                                           X         ◯                             11     X        ◯                                                                           X         X                                         12     X        X         ◯                                                                           ◯                             13     X        X         ◯                                                                           X                                         14     X        X         X         ◯                             15     X        X         X         X                                         ______________________________________                                    

                  TABLE 2 (b)                                                     ______________________________________                                               Film      Rewinding Film leading                                              counter   of film   end is, re-                                                                            Blur-warning                                     Count-    Auto-     winded com-                                                                            buzzer                                           up: ◯                                                                       return: ◯                                                                   pletely: ◯                                                                 Operation: ◯                  Selected                                                                             Count-    Non-auto- left out of                                                                            Non-                                      Number down: X   return: X cartridge: X                                                                           operation: X                              ______________________________________                                        0      ◯                                                                           ◯                                                                           ◯                                                                          ◯                             1      ◯                                                                           ◯                                                                           ◯                                                                          X                                         2      ◯                                                                           ◯                                                                           X        ◯                             3      ◯                                                                           ◯                                                                           X        X                                         4      ◯                                                                           X         ◯                                                                          ◯                             5      ◯                                                                           X         ◯                                                                          X                                         6      ◯                                                                           X         X        ◯                             7      ◯                                                                           X         X        X                                         8      X         ◯                                                                           ◯                                                                          ◯                             9      X         ◯                                                                           ◯                                                                          X                                         10     X         ◯                                                                           X        ◯                             11     X         ◯                                                                           X        X                                         12     X         X         ◯                                                                          ◯                             13     X         X         ◯                                                                          X                                         14     X         X         X        ◯                             15     X         X         X        X                                         ______________________________________                                    

                  TABLE 2 (c)                                                     ______________________________________                                        No.   Normal    Focus-lock AF-spot continuous AF                              ______________________________________                                        0     ◯                                                           1               ◯                                                 2                          ◯                                      3                                  ◯                              ______________________________________                                    

                  TABLE 2 (d)                                                     ______________________________________                                        10 sec.           5 sec.  2 sec.                                              ______________________________________                                        0       ◯                                                         1                     ◯                                           2                             ◯                                   ______________________________________                                    

                  TABLE 2 (e)                                                     ______________________________________                                        AE-lock/unlock                                                                ◯: AE-locked during                                                                          Setting in M                                       AE-lock button ON.         mode when up or                                    Power is held also.        down switch is ON                                  X: Alternate change                                                                          Shutter speed                                                                             ◯: Sav OFF                             by AE-lock button.                                                                           changing stops                                                                            shutter speed is set                               unlocked also at                                                                             ◯: 1/2Ev stops                                                                X: Sav OFF                                         power-hold OFF X: 1Ev stop Aperture is set                                    ______________________________________                                        0   ◯  ◯                                                                             ◯                                  1   ◯  ◯                                                                             X                                              2   ◯  X           ◯                                  3   ◯  X           X                                              4   X              ◯                                                                             ◯                                  5   X              ◯                                                                             X                                              6   X              X           ◯                                  7   X              X           X                                              ______________________________________                                    

                  TABLE 3                                                         ______________________________________                                        Function Data (Fb.sub.n) RAM                                                  Bits   Meaning                                                                ______________________________________                                        Fb.sub.0                                                                             b.sub.0 b.sub.1 = 00                                                                       P mode                                                    Fb.sub.1                                                                             b.sub.0 b.sub.1 = 01                                                                       A mode                                                           b.sub.0 b.sub.1 = 10                                                                       M mode                                                           b.sub.0 b.sub.1 = 11                                                                       S mode                                                    Fb.sub.2                                                                             b.sub.2 = 0  Multi-spot mode                                                  b.sub.2 = 1  Single-spot mode                                          Fb.sub.3                                                                             b.sub.3 = 0  Single-frame advancing                                           b.sub.3 = 1  Continuous advancing mode                                 Fb.sub.4                                                                             b.sub.4 b.sub.5 = 0,0                                                                      No adjustment                                             Fb.sub.5                                                                             b.sub.4 b.sub.5 = 0,1                                                                      + adjustment                                                     b.sub.4 b.sub.5 = 1,0                                                                      - adjustment                                              Fb.sub.6                                                                             b.sub.6 b.sub.7 = 0,0                                                                      No H/S                                                    Fb.sub.7                                                                             b.sub.6 b.sub.7 = 0,1                                                                      Highlight (H)                                                    b.sub.6 b.sub.7 = 1,0                                                                      Shadow (S)                                                Fb.sub.8                                                                             b.sub.8 = 0  One-shot AF                                                      b.sub.8 = 1  Continuous AF                                             Fb.sub.9                                                                             b.sub.9 =  0 Non-forced Full light emission                                   b.sub.9 = 1  Forced Full light emission                                Fb.sub.10                                                                            b.sub.10 = 0 Non-forced light emission                                        b.sub.10 = 1 Forced light emission                                     Fb.sub.12                                                                            b.sub.12 = 0 Multi-spot photometry (Auto)                                     b.sub.12 = 1 single-spot photometry                                    Fb.sub.13                                                                            b.sub.13 = 0 Auxiliary light not used                                         b.sub.13 = 1 Auxiliary light mode                                      Fb.sub.14                                                                            b.sub.14 = 0 No focus-lock by S.sub.Q                                         b.sub.14 = 1 Focus-locked by S.sub.Q                                   Fb.sub.15                                                                            b.sub.15 = 0 Single-spot AF before S.sub.Q ON                                 b.sub.15 = 1 Multi-spot AF before S.sub.Q ON                           ______________________________________                                    

                  TABLE 4                                                         ______________________________________                                        Mode Setting Data (MSbn) E.sup.2 PROM                                         Bits      Meaning                                                             ______________________________________                                        MSb.sub.0 b.sub.0 = 0                                                                           H/S mode NO                                                           b.sub.0 = 0                                                                           H/S mode EXIST                                              MSb.sub.1 b.sub.1 = 0                                                                           +/- mode NO                                                           b.sub.1 = 1                                                                           +/- mode EXIST                                              MSb.sub.2 b.sub.2 = 0                                                                           S/C mode NO                                                           b.sub.2 = 1                                                                           S/C mode EXIST                                              MSb.sub.3 b.sub.3 = 0                                                                           S/A mode NO                                                           b.sub.3 = 1                                                                           S/A mode EXIST                                              MSb.sub.4 b.sub.4 = 0                                                                           Mode setting unfinished                                               b.sub.4 = 1                                                                           Mode setting finished                                       MSb.sub.5 b.sub.5 = 0                                                                           AE-locked during depression                                                   of the switch                                                         b.sub.5 = 1                                                                           10-second hold mode                                         MSb.sub.6 000 = PASM, 001 = PAM, 010 = PAS,                                   MSb.sub.7 011 = PSM, 100 = PA, 101 = PM,                                      MSb.sub.8 110 = PS, 111 = P                                                   MSb.sub.9 -                                                                             Decimal number by these for bits corresponds                        MSb.sub.12                                                                              to Selected No. in Table 2(b).                                                Example 0000 = No. 0                                                MSb.sub.13 -                                                                            Number of film frames                                               MSb.sub.18                                                                              From 0 to 63                                                        MSb.sub.19 -                                                                            film speed Iso 50-6400                                              MSb.sub.24                                                                              (00H-40H used) 1/3Eo step                                           MSb.sub.26                                                                              00      Not specified                                               MSb.sub.27                                                                              01      AF spot                                                               10      AF continuous (mode V)                                                11      Focus-lock                                                  MSb.sub.28                                                                              1       Only up/down switch ON                                                        → aperture change                                                      Up/down switch ON + S.sub.AV ON                                               → shutter speed change                                         0       Only up/down switch ON                                                        → shutter speed change                                                 Up/down switch ON + S.sub.AV ON                                               → aperture change                                    MSb.sub.29                                                                              1       Shutter speed changed by 1/2Ev stops                                  0       Shutter speed changed by 1Ev stops                          MSb.sub.30                                                                              00      Self-timer time 2 seconds                                   MSb.sub.31                                                                              01      Self-timer time 5 seconds                                             10      Self-timer time 10 seconds                                  MSb.sub.32 -                                                                            000     +0.5,  001  +0.25                                           MSb.sub.34                                                                              010      0,    011  -0.25                                                     100     -0.5 (Ev)                                                   ______________________________________                                    

                  TABLE 5                                                         ______________________________________                                        Change Data (CDb.sub.n) (RAM)                                                 Bits     Meaning                                                              ______________________________________                                        CDb.sub.0                                                                              000     H/S change, 001   +/- change                                 CDb.sub.1                                                                              010     S/C change, 011   S/A change                                 CDb.sub.2                                                                              100     No change                                                    ______________________________________                                    

                  TABLE 6                                                         ______________________________________                                        Card Communication Output Data (CSb.sub.n)                                    Bits     Meaning                                                              ______________________________________                                        CSb.sub.0                                                                              b.sub.0, b.sub.1 = 0,0                                                                    Serial communication (I)                                 CSb.sub.1                                                                              b.sub.0, b.sub.1 = 0,1                                                                    Serial communication (II)                                         b.sub.0, b.sub.1 = 1,0                                                                    Serial communication (III)                                        b.sub.0, b.sub.1 = 1,1                                                                    Sleep sign                                               ______________________________________                                    

                                      TABLE 7                                     __________________________________________________________________________    Data from a card                                                              Memory                                                                              Content                                                                             Address                                                                            Data                                                         __________________________________________________________________________                       b.sub.1                                                                            b.sub.2                                                                             b.sub.3 -b.sub.7                                ROM   kind of                                                                             20.sub.M                                                                           1 Card mode  NU                                                    card         attached                                                                           setting card                                                           0 No card                                                                            Program                                                                       card                                                                     b.sub.0, b.sub.1                                                                         b.sub.2, b.sub.3                                ROM   Function                                                                            21hd M                                                                             1 00 NS      00 NS                                                 data (I)   0 01 Continuous AF                                                                         01 Single-spot AF                                                  10 One-shot AF                                                                           10 Multi-spot AF                                                   b.sub.4, b.sub.5                                                                         b.sub.6, b.sub.7                                                 1 00 NS      00 NS                                                              01 Single-spot                                                                           01 Continuous                                                        photometry                                                                               advancing                                                      0 10 Multi-spot                                                                            10 Single frame                                                               advancing                                                          b.sub.0    b.sub.1                                         E.sup.2 PROM                                                                        function                                                                            22.sub.M                                                                           1 Card display                                                                             H/S mode                                              data (II)  0 No         No                                                                 b.sub.2    b.sub.3                                                          1 +/- mode   S/C mode                                                         0 No         No                                                                 b.sub.4    b.sub.5 b.sub.6                                                  1 S/A mode   Card display                                                     0 No         Camera display                                                     b.sub.0 -b.sub.2                                                                   b.sub.3                                                                             b.sub.4 -b.sub.7                                E.sup.2 PROM                                                                        Function                                                                            23.sub.M                                                                           1 AE mode                                                                            NU    Change mode (IV)                                      data (III) 0 selection  selection No.                                                      b.sub.0, b.sub.1                                                                         b.sub.2, b.sub.3                                E.sup.2 PROM                                                                        Function                                                                            24.sub.M                                                                           1 Change mode (V)                                                                          Change mode (VI)                                      data (IV)  0 selection No.                                                                            selection No.                                                      b.sub.4, b.sub.6                                                                         b.sub.7                                                          1 Change mode (VII)                                                                        NU                                                               0 selection No.                                                                 b.sub.0 -b.sub.2                                           RAM   Data  25.sub.M                                                                           1 At Δ                                                       changing   0 and NO                                                           Site                                                                                       b.sub.0 -b.sub.2                                           E.sup.2 PROM                                                                        function                                                                            26.sub.M                                                                           1 Change mode (III)                                                data (V)   0 selection No.                                                                 b.sub.0                                                                            b.sub.1                                                                             b.sub.2                                         ROM   Function                                                                            27.sub.M                                                                           1 Flash                                                                              Full flash                                                                          Card controlled                                       data (V)   0 No   Not full                                                                            Camera controlled                                                b.sub.0 -b.sub.7                                             ROM   Function                                                                            28.sub.M                                                                           Change illumination level                                          data (V)                                                                                 b.sub.0 -b.sub.7                                             ROM   Aperture                                                                            29.sub.M                                                                           Aperture value                                                     value                                                                                    b.sub.0 b.sub.7                                              ROM   Shutter                                                                             2A.sub.M                                                                           Shutter speed                                                      speed                                                                   __________________________________________________________________________     NS: Not Specified                                                             NU: Not Used                                                             

                  TABLE 8 (a)                                                     ______________________________________                                        Bits         Meaning                                                          ______________________________________                                        CCKb.sub.0 - No. of change mode                                               CCKb.sub.2   (0-6 = change mode I-VII)                                        CCKb.sub.3 - Selection No. in change mode I                                   CCKb.sub.6   (0-15)                                                           CCKb.sub.7 - Selection No. in change mode II                                  CCKb.sub.9   (0-7)                                                            CCKb.sub.10 -                                                                              Selection No. in change mode III                                 CCKb.sub.12  (0-7)                                                            CCKb.sub.13 -                                                                              Selection No. in change mode IV                                  CCKb.sub.15  (0-15)                                                           CCKb.sub.17  Selection No. in change mode V                                   CCKb.sub.18  (0-3)                                                            CCKb.sub.19  Selection No. in change mode VI                                  CCKb.sub.20  (0-2                                                             CCKb.sub.21 -                                                                              Selection No. in change mode VII                                 CCKb.sub.23  (0-5)                                                            ______________________________________                                    

                  TABLE 8 (b)                                                     ______________________________________                                        Flags   Meaning                                                               ______________________________________                                        BATF    F = 1    Flow of initialization of battery                                             attachment has been passed through once                              F = 0    After initializationof battery                                                attachment, switch has been operated                                          once or predetermined processing has                                          been finished without performing                                              anything.                                                    OPF     F = 1    Any of switches S.sub.EM, S.sub.FUN, S.sub.CD,                                S.sub.CDS, S.sub.0                                                            is ON                                                                F = 0    All of the above five switches are OFF                       AELF    F = 1    AE lock function is ON.                                              F = 0    AE lock function is OFF.                                     SETF    F = 1    IC card is attached, and data setting                                         mode is set                                                          F = 0    IC card is attached, and data setting                                         mode is not set                                              AFNF    F = 1    AF cannot be peformed                                                F = 0    AF can be performed                                          AF1F    F = 1    DF of first island is set as DF for lens                                      driving.                                                             F = 0    DF of first island is not set as DF for                                       lens driving.                                                AF2F    F = 1    DF of second island is set as DF for                                          lens driving.                                                        F = 0    DF of second island is not set AS DF for                                      lens driving.                                                AF3F    F = 1    DF of third island is set as DF for                                           lens driving.                                                        F = 0    DF of third island is not set AS DF for                                       lens driving.                                                AFEF    F = 1    right-focused state                                                  F = 0    Non-focused state                                            CDF     F = 1    when card function enable/disable switch                                      S.sub.CD is ON, flow of S.sub.CD ON has been                                  executed once.                                                       F = 0    when CDF = 1, flow of S.sub.CD OFF has                                        been executed.                                               CDFNF   F = 1    Card function is enabled.                                            F = 0    Card function is disabled.                                   CDSF    F = 1    Card data setting switch S.sub.CDS has been                                   operated and flow of S.sub.CD ON has been                                     excuted once, but flow of S.sub.CD OFF has                                    not bee executed.                                                    F = 0    In data setting mode, flow of S.sub.CD OFF                                    has been executed.                                           AEONF   F = 1    AE locking switch S.sub.AEL has been                                          operated, and flow of steps #1705 et seq.                                     has been executed once.                                              F = 0    When AE locking switch is turned OFF                         CDIF    F = 1    Steps #2710-#2720 have been passed                                            through once.                                                        F = 0    Steps #2710-#2720 have never been                                             passed through.                                              DISPIF  F = 1    When card function is added                                                   (by S.sub.CD ON),                                                             display is performed for a certain time.                             F = 0    The above-mentioned display for a                                             certain time is not performed.                               WRTF    F = 1    Data is written to E.sup.2 PROM.                                     F = 0    Data is not written to E.sup.2 PROM.                         CHGF    F = 1    Changeable function mode NO                                          F = 0    Changeable function mode EXIST                               LOCNF   F = 1    Focusing impossible                                                  F =  0   Focusing possible                                            AFEIF   F = 1    first subject-following mode after                                            right focus                                                          F = 0    Not first                                                    S.sub.1 ONF                                                                           F = 1    S.sub.1 is ON                                                        F = 0    S.sub.1 is OFF                                               Subject-                                                                              F = 1    Subject-following mode                                       follow F                                                                              F = 0    Otherwise                                                    S.sub.Q ONF                                                                           F = 1    S.sub.Q is ON                                                        F = 0    S.sub.Q is OFF                                               Multi-  F = 1    Display the set Multi-/Single-spot mode                      /Single-         in camera body LCD even when the                             spot             mode change is prohibited                                    display F                                                                             F = 0    Not display at that time                                     ______________________________________                                    

                                      TABLE 9                                     __________________________________________________________________________    Display RAM (register)                                                        Address                                                                            Content  Data                                                            __________________________________________________________________________    00.sub.M                                                                           Shutter speed                                                                          b.sub.0 -b.sub.7 represent shutter speed                        01.sub.M                                                                           Aperture value                                                                         b.sub.0 -b.sub.7 represent Aperture value                                       b.sub.0   b.sub.1   b.sub.2                                   02.sub.M                                                                           Mode display                                                                           1 Manual Focus                                                                            ONE SHOT-AF                                                                             SELF                                                    0 AF        CONT-AF   NON                                                       b.sub.0, b.sub.1                                                                        b.sub.1   b.sub.2                                   OE.sub.M                                                                           AE mode display                                                                        1 P, A, M or S                                                                            Mode set by                                                       0           IC card                                                             b.sub.0                                                                            b.sub.1                                                                            b.sub.2                                                                            b.sub.3                                                                            b.sub.4                                                                          b.sub.5                                                                         b.sub.6                              O4.sub.M                                                                           Card display                                                                           1 Card H    NU   +    NU S Single                                             0 NON  S         -       C Multi                                                b.sub.7                                                                     1 Single/multi display                                                        0 Non display                                                                   b.sub.0 -b.sub.2                                              05.sub.M                                                                           Data changing                                                                          1 At Δ and                                                     site display                                                                           0 Non                                                           06.sub.M                                                                           Frame number                                                                           b.sub.0 -b.sub.6 : Number b.sub.7: NU                           07.sub.M                                                                           Film     b.sub.0 -b.sub.7 :                                                              b.sub.0   b.sub.1 -b.sub.3                                                                        b.sub.4 -b.sub.7                          08M  IC card mode                                                                           1 Program card                                                                            Change mode III                                                                         Change mode V                                  display (I)                                                                            0 Mode stting card                                                                        Selecting No.                                                                           Selection No.                                             b.sub.0 · b.sub.1                                                              b.sub.2 · b.sub.3                                                              b.sub.4 · b.sub.5                09.sub.M                                                                           IC card mode                                                                           1 Change mode V                                                                           Change mode VI                                                                          Change mode VII                                display (II)                                                                           0 Selection No.                                                                           Selection No.                                                                           Selection No.                                             b.sub.0                                                                         b.sub.1 b.sub.2   b.sub.3                                   0A.sub.M                                                                           Controls 1   Initial load                                                                          Not glow  When card attached                                      0   Non                                                                         b.sub.4   b.sub.5, b.sub.6                                                  1 When battery load                                                                       Prepared data                                                     0           0, 0-1, 1 = I-IV                                                    b.sub.0 -b.sub.3                                              0B.sub.M                                                                           IC card mode                                                                           1 Change mode I                                                      display (III)                                                                          0 Selection No.                                                                 b.sub.0   b.sub.1   b.sub.2                                   0C.sub.M                                                                           Viewfinder LED                                                                         1 Focused   F. Impossible                                                                           Follow                                                  0 Non       Non       Non                                                       b.sub.3   b.sub.4                                                                            b.sub.5                                                      1 Multi AF  AF   S.sub.1 ON                                                   0 Spot AF   M    S.sub.1 OFF                                    __________________________________________________________________________

                  TABLE 10                                                        ______________________________________                                        Lens (I)                                                                             Address                                                                       (8 bits) Meaning                                                       ______________________________________                                                     00H        Lens attached                                                      XXX00001   Open aperture value Avo                                            XXX00010   Maximum aperture value Avmax                                       XXX00011   Distance                                              (A)          XXX00100   Focal length                                                       XXX00101   Lens move conversion factor                                        06H        S.sub.Q b.sub.0 = 1: (OFF), b.sub.1 -b.sub.7 = 0                   07H        LOK b.sub.0 = 0: OK, b.sub.1 -b.sub.7 = 0                          10H        Lens attached                                                      XXX10001   Open aperture value Avo                                            XXX10010   Maximum aperture value Avmax                                       XXX10011   Distance                                              (B)          XXX00100   Focal length                                                       XXX00101   Lens move conversion factor                                        16H        S.sub.Q b.sub.0 = 1: (OFF), b.sub.1 -b.sub.7 = 0                   17H        LOK b.sub.0 = 0: OK, b.sub.1 -b.sub.7 = 0                          18H         "                                                    ______________________________________                                    

                  TABLE 11                                                        ______________________________________                                        Lens (II)                                                                            Address                                                                       (8 bits) Meaning                                                       ______________________________________                                                     00H        Lens attached                                                      XXX00001   Open aperture value Avo                                            XXX00010   Maximum aperture value Avmax                                       XXX00011   Distance                                                           XXX00100   Focal length                                          (A)          XXX00101   Lens move conversion factor                                        06H        S.sub.Q b.sub.0 = 1: (OFF), b.sub.1 -b.sub.7 = 0                   07H        LOK b.sub.0 = 0: NO, b.sub.1 -b.sub.7 = 0                          08H        S.sub.Q b.sub.0 = 1: (OFF), b.sub.1 -b.sub.7 = 0                   09H        LOK b.sub.0 = 0: OK, b.sub.1 -b.sub.7                 ______________________________________                                                                = 0                                               

                  TABLE 12                                                        ______________________________________                                        Lens information in camera                                                    Address in                                                                    camera        Meaning (1 byte)                                                ______________________________________                                        Bd1           Lens attached/Non                                               Bd2           Opern aperture value Avo                                        Bd3           Maximum aperture value Avmax                                    Bd4           Distance                                                        Bd5           Focal length                                                    Bd6           Lens move conversion factor                                     Bd7           S.sub.Q b.sub.0 = 0:                                                                          S.sub.Q is OFF                                                        b.sub.0 = 0:                                                                          S.sub.Q is ON                                                         b.sub.1 -b.sub.7 :                                                                    NU                                              Bd8           .sub.Q  b.sub.0 = 0:                                                                          NO                                                                    b.sub.0 = 1:                                                                          OK                                                                    b.sub.1 -b.sub.7 :                                                                    NU                                              ______________________________________                                    

What is claimed is:
 1. An exposure value setting device for a camera with a manual exposure mode in which an aperture value and a shutter speed are set separately, comprising:a selection switch; means for selecting, in the manual exposure mode, either a first mode or a second mode in response to the operation of the selection switch; first setting means, working in the first mode, for setting the aperture value in response to a first manual operation and for setting the shutter speed in response to a second manual operation; and second setting means, working in the second mode, for setting the shutter speed in response to the first manual operation and for setting the aperture value in response to the second manual operation.
 2. An exposure value setting device for setting a camera with a manual exposure mode in which an aperture value and a shutter speed are set separately, comprising:a selection switch; means for selecting either a first mode or a second mode in response to the operation of the selection switch; a first switch; a second switch; first setting means, in response to the operation of the first switch, for setting the aperture value in the first mode and for setting the shutter speed in the second mode; and second setting means, in response to the operation of the second switch, for setting the shutter speed in the first mode and for the aperture value in the second mode.
 3. An exposure value setting device according to claim 2, wherein the second switch includes the first switch and another switch. 